chiark / gitweb /
label: fix database check
authorLennart Poettering <lennart@poettering.net>
Wed, 31 Aug 2011 23:16:55 +0000 (01:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Aug 2011 23:16:55 +0000 (01:16 +0200)
src/label.c

index 3df7e55..d9d195b 100644 (file)
@@ -291,7 +291,7 @@ int label_mkdir(const char *path, mode_t mode) {
         int r;
         security_context_t fcon = NULL;
 
         int r;
         security_context_t fcon = NULL;
 
-        if (!use_selinux() || label_hnd)
+        if (!use_selinux() || !label_hnd)
                 goto skipped;
 
         if (path_is_absolute(path))
                 goto skipped;
 
         if (path_is_absolute(path))