]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: avoid double specifier expansion in L lines 26245/head
authorDmitry V. Levin <ldv@strace.io>
Sat, 29 Jan 2022 20:00:00 +0000 (20:00 +0000)
committerDmitry V. Levin <ldv@strace.io>
Sat, 29 Jan 2022 20:00:00 +0000 (20:00 +0000)
commit05381430a5d632ffc716fb4c89328952bd8ccafd
treee26bf8373c7877a05f982cee1ccd2f988ae3c645
parent1ed8887e3b539c89f3bb381427fbe9b0307bdfd0
tmpfiles: avoid double specifier expansion in L lines

Starting with commit 2f3b873a4973, when the path contains a specifier
and the argument is omitted, tmpfiles used to perform specifier
expansions twice: first specifier expansion was applied to the path
itself, and afterwards the result of the first expansion was used
in the constructed argument and expanded once again.

Resolves: #26244
Fixes: 2f3b873a4973 ("tmpfiles: copy/link /usr/share/factory/ files when the source argument is omitted")
src/tmpfiles/tmpfiles.c
test/units/testsuite-22.15.sh [new file with mode: 0755]