[systemd-commits] src/tmpfiles

Lennart Poettering lennart at kemper.freedesktop.org
Mon Jan 5 07:33:58 PST 2015


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

New commits:
commit 65d6d8e32bf06635fd7f0fc0ea2a8d5ee9da3fe5
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon Jan 5 16:32:59 2015 +0100

    tmpfiles: fix 'D' lines
    
    https://bugs.freedesktop.org/show_bug.cgi?id=87953

diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index b830850..f5b32c2 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -774,7 +774,7 @@ static int create_item(Item *i) {
                 } else
                         r = 0;
 
-                if (i->type == CREATE_DIRECTORY || r == -ENOTTY) {
+                if (i->type == CREATE_DIRECTORY || i->type == TRUNCATE_DIRECTORY || r == -ENOTTY) {
                         RUN_WITH_UMASK(0000)
                                 r = mkdir_label(i->path, i->mode);
                 }



More information about the systemd-commits mailing list