]> git.ipfire.org Git - thirdparty/systemd.git/commit
fs-util: make sure fsync_directory_of_file() does something useful on O_PATH fds
authorLennart Poettering <lennart@poettering.net>
Tue, 15 Jun 2021 13:57:18 +0000 (15:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2021 08:22:34 +0000 (10:22 +0200)
commit427c934fdb634cde4d4426a13e7fc91d99f7db64
tree2ac4e73a518b83f722831c3ceee03f892db763f6
parent105a4245ff13d588e1e848e8ee3cffd6185bd0ae
fs-util: make sure fsync_directory_of_file() does something useful on O_PATH fds

When handling O_PATH fds it's safe to use the parent of
/proc/self/fd/<fd> for any kind of inode. Hence do so.
src/basic/fs-util.c