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:
Dave Reisner 2012-09-27 20:48:13 -04:00
parent c651162ca8
commit 1845fdd967
1 changed files with 4 additions and 0 deletions

View File

@ -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)