label: fix database check

This commit is contained in:
Lennart Poettering
2011-09-01 01:16:55 +02:00
parent 7babb117a4
commit cfc27668b0

View 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))