summaryrefslogtreecommitdiff
path: root/src/tmpfiles.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-03 22:21:21 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-03 22:22:56 +0200
commit3336686286cb0eab725190c14bc990b38fe57125 (patch)
treef4f3c6f7637d4aeed8269a46cf38546eb1298970 /src/tmpfiles.c
parentd24e1b4806e7e96b0c5bc0950ce79e8f76c2ab71 (diff)
tmpfiles: create leading directories for d/D instructions
Diffstat (limited to 'src/tmpfiles.c')
-rw-r--r--src/tmpfiles.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tmpfiles.c b/src/tmpfiles.c
index e92b1123c6..70a9ebd831 100644
--- a/src/tmpfiles.c
+++ b/src/tmpfiles.c
@@ -466,6 +466,7 @@ static int create_item(Item *i) {
case CREATE_DIRECTORY:
u = umask(0);
+ mkdir_parents(i->path, 0755);
r = mkdir(i->path, i->mode);
umask(u);