diff options
author | Franck Bui <fbui@suse.com> | 2022-04-08 12:06:27 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2022-04-11 11:22:27 +0200 |
commit | 9af74e0f59b9af5568d4f594655dd99a3be17ac4 (patch) | |
tree | c389876c01ee71378118c9a71fdd7887fa1b8d31 /test | |
parent | Merge pull request #22951 from keszybz/fix-entry-selection-bootctl-status (diff) | |
download | systemd-9af74e0f59b9af5568d4f594655dd99a3be17ac4.tar.xz systemd-9af74e0f59b9af5568d4f594655dd99a3be17ac4.zip |
tmpfiles.d: only 'w+' can have multiple lines for the same path
Since d0ea5c5e39dce60efbce6d86534eb9ca253440b0, all lines specifying actions
that recreate a file system object (such as 'f+, 'L+', etc ...) on the same
path were allowed. This had the bad side effect to break the tmpfiles
configuration file sorting for files defining such lines.
For example:
# cat /etc/tmpfiles.d/a.conf
f+ /tmp/file - - - - a.conf
# cat /etc/tmpfiles.d/z.conf
f+ /tmp/file - - - - z.conf
# systemd-tmpfiles --create /etc/tmpfiles.d/{a,z}.conf
# cat /tmp/file
z.conf
Even though "a.conf" sorts lexicographically before "z.conf", the content of
/tmp/file was the result of the action defined in "z.conf"
This patch restores the old logic - if multiple files specify the same path,
the entry in the file with the lexicographically earliest name will be applied.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions