[systemd-commits] src/tmpfiles.c TODO

Kay Sievers kay at kemper.freedesktop.org
Sun Apr 3 13:24:16 PDT 2011


 TODO           |    2 --
 src/tmpfiles.c |    1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 3336686286cb0eab725190c14bc990b38fe57125
Author: Kay Sievers <kay.sievers at vrfy.org>
Date:   Sun Apr 3 22:21:21 2011 +0200

    tmpfiles: create leading directories for d/D instructions

diff --git a/TODO b/TODO
index b3d8e1a..8e822e7 100644
--- 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.
 
diff --git a/src/tmpfiles.c b/src/tmpfiles.c
index e92b112..70a9ebd 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);
 



More information about the systemd-commits mailing list