From: Lennart Poettering Date: Wed, 31 Aug 2011 23:16:55 +0000 (+0200) Subject: label: fix database check X-Git-Tag: v35~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfc27668b0fec2c56db0fb118804ede773bef876;p=systemd label: fix database check --- diff --git a/src/label.c b/src/label.c index 3df7e55b..d9d195b5 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))