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
@@ -39,9 +39,6 @@ Missing options: `--root`, `--replace`, `--dry-run`, `--purge`,
|
||||
that mode and owner could not be set
|
||||
* An `x` or `X` entry with an age should have what it names cleaned
|
||||
by that age, the age is not read
|
||||
* A `w` entry with a glob that matches several paths writes its
|
||||
argument only up to the first backslash for all but the first,
|
||||
`write_arg()` cuts the argument up as it goes
|
||||
* The `%T` and `%V` specifiers are always `/tmp` and `/var/tmp`, they
|
||||
do not look at `$TMPDIR`
|
||||
* `mksubsys()` in `src/util.c` is unused
|
||||
Reference in new issue
Block a user