X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flabel.c;h=d9d195b50fa0fbd29a8dfd9d7b252c58490310b6;hb=d68af58657ce0e99594dff199fbb9b319cf6af96;hp=3df7e55ba41316c2d44959dba238f2f1f2513354;hpb=382241ee56849bd358047e7970d1ccf1ffec82a4;p=elogind.git diff --git a/src/label.c b/src/label.c index 3df7e55ba..d9d195b50 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))