]> err.no Git - systemd/commitdiff
tmpfiles: create leading directories for d/D instructions
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 3 Apr 2011 20:21:21 +0000 (22:21 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 3 Apr 2011 20:22:56 +0000 (22:22 +0200)
TODO
src/tmpfiles.c

diff --git a/TODO b/TODO
index b3d8e1afc50cc99534ba17116d24059324573abc..8e822e7828db33be17c2d1bff782c956bd9cea1e 100644 (file)
--- a/TODO
+++ b/TODO
@@ -30,8 +30,6 @@ Features:
 * tmpfiles should allow two identical lines
   https://bugzilla.redhat.com/show_bug.cgi?id=690253
 
-* tmpfiles should create leading directories for d,D,f,F?
-
 * avoid any flag files, or readahead files in /, we need to support r/o /
   or / on tmpfs like Android setups.
 
index e92b1123c67f77d7ff9dea5896465378e8e3f076..70a9ebd83111e609252c8c410a4cd4535d31f006 100644 (file)
@@ -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);