mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: write all of the argument to every match of a w entry
A w entry with a glob wrote its whole argument to the first path
only. The rest got it up to the first backslash:
w /sys/class/net/eth*/queues/rx-0/rps_cpus - - - - f\n
write_arg() put a NUL in the argument at each escape as it went, so
the second call saw a shorter string.
Leave the argument as it is.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+13
-4
No files matched your search
@@ -301,6 +301,8 @@ All relevant changes are documented in this file.
|
||||
- Fix `tmpfiles --clean` for an `e` entry with a glob in the path, like
|
||||
`e /var/cache/* - - - 10d`, nothing was cleaned. The age of a `C`
|
||||
entry is now used as well
|
||||
- Fix tmpfiles `w` entries with a glob that matches several paths, all
|
||||
but the first got the argument only up to its first backslash escape
|
||||
- Fix age `0` in a tmpfiles entry, it was read as no age. As in
|
||||
tmpfiles.d(5), `tmpfiles --clean` now empties the directory of such an
|
||||
entry
|
||||
|
||||
Reference in new issue
Block a user