tmpfiles: let %T and %V follow $TMPDIR

The %T and %V specifiers are always /tmp and /var/tmp.  In systemd
both are the first of $TMPDIR, $TEMP, and $TMP that is set to an
absolute path of a directory, and only otherwise /tmp and /var/tmp.

Do the same.  At boot none of them are set, so nothing changes there.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-21 17:14:03 +01:00
1 parent c349d564d4
commit 9ea64e5c3c
4 files changed
+29 -4

No files matched your search

-2
View File
@@ -35,6 +35,4 @@ Missing options: `--root`, `--replace`, and `--purge`.
left as it is, with a warning
* An `x` or `X` entry with an age should have what it names cleaned
by that age, the age is not read
* The `%T` and `%V` specifiers are always `/tmp` and `/var/tmp`, they
do not look at `$TMPDIR`
* `mksubsys()` in `src/util.c` is unused