to -1, instead of incrementing it, and checking if not nul at the
end.
* libmisc/copydir.c: Avoid assignment in comparisons.
+ * libmisc/copydir.c: Document selinux_file_context.
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>
uid_t uid, gid_t gid);
#ifdef WITH_SELINUX
+/*
+ * selinux_file_context - Set the security context before any file or
+ * directory creation.
+ *
+ * selinux_file_context () should be called before any creation of file,
+ * symlink, directory, ...
+ *
+ */
static int selinux_file_context (const char *dst_name)
{
security_context_t scontext = NULL;