summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-09-27 20:48:13 -0400
committerDave Reisner <dreisner@archlinux.org>2012-09-27 20:53:05 -0400
commit1845fdd967d3a4c06f895413505de3c2429955b0 (patch)
treeda2bd49f77d246863fbc92729cb322e2c83c7345 /src
parentc651162ca83e6389cc167e5b09527dcbe2852799 (diff)
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().
Diffstat (limited to 'src')
-rw-r--r--src/tmpfiles/tmpfiles.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index f10f90845e..bf900fa3d9 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)