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 3df7e55ba41316c2d44959dba238f2f1f2513354..d9d195b50fa0fbd29a8dfd9d7b252c58490310b6 100644 (file)
@@ -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))