summaryrefslogtreecommitdiff
path: root/src/tmpfiles/tmpfiles.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-05 16:32:59 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-05 16:32:59 +0100
commit65d6d8e32bf06635fd7f0fc0ea2a8d5ee9da3fe5 (patch)
treeae9ddafd6f729c9c199249e6319301ad2393f112 /src/tmpfiles/tmpfiles.c
parent3fdcecc87eb381ef300719e419d5863dd8a64a97 (diff)
tmpfiles: fix 'D' lines
https://bugs.freedesktop.org/show_bug.cgi?id=87953
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index b830850879..f5b32c2ba8 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);
}