]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: use fd_get_path() less excessively
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Aug 2018 13:40:16 +0000 (15:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Aug 2018 09:59:39 +0000 (11:59 +0200)
commit9d874aec451b591401d9b14cf8743b9d179159b2
treeb1627066a2a6618fb95234d8a0f3af066f08e4ab
parent8e7ab357440faf8b77abe09826152d6c17eda6d6
tmpfiles: use fd_get_path() less excessively

fd_get_path() is an ugly API, as it creates ambiguities related to the
" (deleted)" suffix /proc/$PID/fd/$FD shows. Let's use it a bit less
excessively, and whenever we have a good valid path already, let's
simply pass that along, instead of forgetting it in one stackframe and
reacquiring it in the next.
src/tmpfiles/tmpfiles.c