-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
From 9e3f451fd0a2fc7b15cca2078dc2d376e770de23 Mon Sep 17 00:00:00 2001
From: Gustavo Sverzut Barbieri <[email protected]>
Date: Tue, 19 Oct 2010 23:06:34 -0200
Subject: [PATCH] consider TRUNCATE_DIRECTORY as well.

reorder lines to match the enum declaration.
---
 src/tmpfiles.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/tmpfiles.c b/src/tmpfiles.c
index 73246bd..1ad5a01 100644
--- a/src/tmpfiles.c
+++ b/src/tmpfiles.c
@@ -497,8 +497,9 @@ static int parse_line(const char *fname, unsigned line, const char *buffer, cons
         }
 
         if (i->type != CREATE_FILE &&
-            i->type != CREATE_DIRECTORY &&
             i->type != TRUNCATE_FILE &&
+            i->type != CREATE_DIRECTORY &&
+            i->type != TRUNCATE_DIRECTORY &&
             i->type != IGNORE_PATH &&
             i->type != REMOVE_PATH &&
             i->type != RECURSIVE_REMOVE_PATH) {
-- 
1.7.2.2

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to