tmpfiles: skip the space before the argument of an entry

An entry written in aligned columns got the space after the age field
as part of its argument:

    L  /tmp/null  -  -  -  -    /dev/null

This made a link to "   /dev/null".  Only the first separator after
the age was dropped.  A lone "-" for no argument was also taken as is,
so an f entry with it made a file holding a dash.

Skip all the space before the argument, and read "-" as no argument.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-20 12:00:50 +01:00
1 parent f95db7e6df
commit 3bc7c83731
4 files changed
+42

No files matched your search

+2
View File
@@ -81,6 +81,7 @@ EXTRA_DIST += start-stop-sysv.sh
EXTRA_DIST += start-stop-serv.sh
EXTRA_DIST += signal-service.sh
EXTRA_DIST += testserv.sh
EXTRA_DIST += tmpfiles-arg.sh
EXTRA_DIST += tmpfiles-perm.sh
EXTRA_DIST += unexpected-restart.sh
EXTRA_DIST += dbus-auth.sh
@@ -159,6 +160,7 @@ TESTS += start-stop-serv.sh
TESTS += signal-service.sh
if TESTSERV
TESTS += testserv.sh
TESTS += tmpfiles-arg.sh
TESTS += tmpfiles-perm.sh
endif
TESTS += unexpected-restart.sh