chiark / gitweb /
tmpfiles: fix 'D' lines
authorLennart Poettering <lennart@poettering.net>
Mon, 5 Jan 2015 15:32:59 +0000 (16:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 5 Jan 2015 15:32:59 +0000 (16:32 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=87953

src/tmpfiles/tmpfiles.c

index b830850..f5b32c2 100644 (file)
@@ -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);
                 }