mkdir: append _label to all mkdir() calls that explicitly set the selinux context

This commit is contained in:
Kay Sievers
2012-05-31 12:40:20 +02:00
parent 051d68786b
commit d2e54fae5c
39 changed files with 74 additions and 69 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ static void path_spec_mkdir(PathSpec *s, mode_t mode) {
if (s->type == PATH_EXISTS || s->type == PATH_EXISTS_GLOB)
return;
if ((r = mkdir_p(s->path, mode)) < 0)
if ((r = mkdir_p_label(s->path, mode)) < 0)
log_warning("mkdir(%s) failed: %s", s->path, strerror(-r));
}