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
@@ -301,6 +301,8 @@ All relevant changes are documented in this file.
- 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 mode of a new file from a tmpfiles `f` entry without a mode, it is
now 0644 as in tmpfiles.d(5), before it followed the umask
- Fix tmpfiles `w` entries with a glob that matches several paths, all
but the first got the argument only up to its first backslash escape
- Fix age `0` in a tmpfiles entry, it was read as no age. As in