projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c651162
)
tmpfiles: restore previous behavior for F/f
author
Dave Reisner
<dreisner@archlinux.org>
Fri, 28 Sep 2012 00:48:13 +0000
(20:48 -0400)
committer
Dave Reisner
<dreisner@archlinux.org>
Fri, 28 Sep 2012 00:53:05 +0000
(20:53 -0400)
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().
src/tmpfiles/tmpfiles.c
patch
|
blob
|
history
diff --git
a/src/tmpfiles/tmpfiles.c
b/src/tmpfiles/tmpfiles.c
index
f10f908
..
bf900fa
100644
(file)
--- 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)