[systemd-devel] [PATCH 3/5] tpmfiles: add missing parenthesis

Lukas Nykryn lnykryn at redhat.com
Fri Mar 1 09:29:59 PST 2013


---
 src/tmpfiles/tmpfiles.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 6b3f70e..ba22073 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) {
-- 
1.7.11.7



More information about the systemd-devel mailing list