From 3336686286cb0eab725190c14bc990b38fe57125 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 3 Apr 2011 22:21:21 +0200 Subject: tmpfiles: create leading directories for d/D instructions --- src/tmpfiles.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf