tmpfiles: no warning for a d entry on a link to a directory

A d entry for a path that is a link to a directory warned that mode
and owner could not be set:

    d /var/lock 0755

Here /var/lock is a link to /run/lock.  The link is not followed, on
purpose, and the open fails.

That is not an error, leave the directory alone without a warning.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-20 19:10:03 +01:00
1 parent 7ee991daf2
commit a27c0d40f3
3 files changed
+11 -3

No files matched your search

-2
View File
@@ -33,8 +33,6 @@ Missing options: `--root`, `--replace`, `--dry-run`, `--purge`,
in `/etc` should run before `50-y.conf` in `/usr/lib`
* `a` and `A` handle an ACL of at most 32 entries, a path with more is
left as it is, with a warning
* A `d` or `e` entry for a path that is a link to a directory warns
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
* The `%T` and `%V` specifiers are always `/tmp` and `/var/tmp`, they