summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/label.c b/src/label.c
index 3df7e55ba4..d9d195b50f 100644
--- a/src/label.c
+++ b/src/label.c
@@ -291,7 +291,7 @@ int label_mkdir(const char *path, mode_t mode) {
int r;
security_context_t fcon = NULL;
- if (!use_selinux() || label_hnd)
+ if (!use_selinux() || !label_hnd)
goto skipped;
if (path_is_absolute(path))