tmpfiles: make a new file 0644 when the f entry has no mode

A file from an f entry without a mode got what the umask left of
0666, so the result depended on who called tmpfiles:

    f /run/app/state

tmpfiles.d(5) has 0644 as the default.  Use that for a file the entry
creates.

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 af10d09762
commit 7ee991daf2
4 files changed
+9 -2

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 new `f` file without a mode gets what the umask leaves of 0666,
it should be 0644
* 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