[systemd-commits] src/tmpfiles

Dave Reisner dreisner at kemper.freedesktop.org
Thu Sep 27 17:54:09 PDT 2012


 src/tmpfiles/tmpfiles.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 1845fdd967d3a4c06f895413505de3c2429955b0
Author: Dave Reisner <dreisner at archlinux.org>
Date:   Thu Sep 27 20:48:13 2012 -0400

    tmpfiles: restore previous behavior for F/f
    
    d4e9eb91ea changed the behavior for the F and f actions, wrongly sending
    them to glob_item(). Restore the old behavior and shortcut straight to
    write_one_file().

diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index f10f908..bf900fa 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -673,6 +673,10 @@ static int create_item(Item *i) {
 
         case CREATE_FILE:
         case TRUNCATE_FILE:
+                r = write_one_file(i, i->path);
+                if (r < 0)
+                        return r;
+                break;
         case WRITE_FILE:
                 r = glob_item(i, write_one_file);
                 if (r < 0)



More information about the systemd-commits mailing list