]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: make sure CopyFiles= works with a / suffixed path
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Mar 2021 13:05:56 +0000 (14:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Mar 2021 08:35:45 +0000 (10:35 +0200)
commit6020d00d7e2cf15565bb9c749386a8c00303ecfa
tree78e98eefaeb2947fbffe1479d4afb81718c92fed
parente0b4bc239fded6c5310cadafa74dabce9f9b40e1
repart: make sure CopyFiles= works with a / suffixed path

If we define a partition with CopyFiles=/efi/ this should just work.
However it previously didn't because basename() would return the
trailing slash.

Let's fix this by moving things to path_extract_{directory|filename}()
src/partition/repart.c