tmpfiles: add the L? entry

tmpfiles.d(5) has L? for a link that is only made when what it points
to exists:

    L? /etc/localtime - - - - ../usr/share/zoneinfo/UTC

The ? was not read, so this made the link whatever was there.

Finit has had this as its own l entry.  Read L? as l.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-20 18:35:37 +01:00
1 parent 0a2beb9b6d
commit e19e37286a
4 files changed
+15 -1

No files matched your search

+2
View File
@@ -1178,6 +1178,8 @@ static void tmpfiles(char *line)
plus = 1;
else if (*mod == '!')
boot = 1;
else if (*mod == '?' && type[0] == 'L')
type[0] = 'l'; /* What Finit has had as l */
}
if (boot && !boot_flag)
return;