diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-03-01 18:29:59 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-03 20:16:57 -0500 |
commit | a6187d4ce884e3c9ccf18d46b2ee494af386cb42 (patch) | |
tree | 6e7c8e96588baefea4b6c4c2df25827cf6ca539f | |
parent | bc41f93e90f6edcc9067f3bc1085bb6c85082c00 (diff) |
tmpfiles: move exclamation mark into right place
Unary not has higher precedence than comparisons,
so the condition was bogus.
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 6b3f70e071..7da94ed57b 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -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) { |