mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: clean what an e entry with a glob matches
An e entry takes a glob, but cleaning looked for a directory with
the pattern as its name:
e /var/cache/* - - - 10d
tmpfiles --clean t.conf
This cleaned nothing.
Expand the glob and clean each directory it matches. Also use the
age of a C entry, tmpfiles.d(5) has it clean what it copied.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
3 files changed
+16
-6
No files matched your search
@@ -288,6 +288,9 @@ All relevant changes are documented in this file.
|
||||
`C`, `z`, and `Z` entries
|
||||
- Fix tmpfiles `b` and `c` entries for a device with major or minor 0,
|
||||
like `5:0` for `/dev/tty`, they were skipped as invalid
|
||||
- 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 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