tmpfiles: move exclamation mark into right place

Unary not has higher precedence than comparisons,
so the condition was bogus.
This commit is contained in:
Lukas Nykryn
2013-03-03 20:16:57 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent bc41f93e90
commit a6187d4ce8
+1 -1
View File
@@ -321,7 +321,7 @@ static int dir_cleanup(
if (age >= cutoff)
continue;
if (!i->type == IGNORE_DIRECTORY_PATH || !streq(dent->d_name, p)) {
if (i->type != IGNORE_DIRECTORY_PATH || !streq(dent->d_name, p)) {
log_debug("rmdir '%s'\n", sub_path);
if (unlinkat(dirfd(d), dent->d_name, AT_REMOVEDIR) < 0) {