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().
This commit is contained in:
parent
c651162ca8
commit
1845fdd967
|
@ -673,6 +673,10 @@ static int create_item(Item *i) {
|
||||||
|
|
||||||
case CREATE_FILE:
|
case CREATE_FILE:
|
||||||
case TRUNCATE_FILE:
|
case TRUNCATE_FILE:
|
||||||
|
r = write_one_file(i, i->path);
|
||||||
|
if (r < 0)
|
||||||
|
return r;
|
||||||
|
break;
|
||||||
case WRITE_FILE:
|
case WRITE_FILE:
|
||||||
r = glob_item(i, write_one_file);
|
r = glob_item(i, write_one_file);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
|
Loading…
Reference in a new issue