From: Lennart Poettering Date: Mon, 5 Jan 2015 15:32:59 +0000 (+0100) Subject: tmpfiles: fix 'D' lines X-Git-Tag: v219~687 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=65d6d8e32bf06635fd7f0fc0ea2a8d5ee9da3fe5 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 b83085087..f5b32c2ba 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); }