]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: port from dirname/basename to path_extract_directory/filename() 23946/head
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Jul 2022 22:15:09 +0000 (00:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Jul 2022 09:35:13 +0000 (11:35 +0200)
commit4609d3bb0725301115d174aab40eff4446325621
tree9b6e6e077051ebd8e47aee9b9e91cf154ee1a78b
parent70980a39b84928088b24895ada6fd27c1b6680a9
tmpfiles: port from dirname/basename to path_extract_directory/filename()

let's use our better, newer internal APIs for these purposes. This gets us
two things: safer handling when the root dir is specified, and better
handling of paths with trailing slashes, as we can refuse them whenever
a directory is not acceptable.
src/tmpfiles/tmpfiles.c