]> git.ipfire.org Git - thirdparty/systemd.git/commit
path-util: make readlink_value() refuse O_DIRECTORY returned from path_extract_filename()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Apr 2022 16:40:36 +0000 (01:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Apr 2022 16:40:39 +0000 (01:40 +0900)
commitbb60956b393c3534fb4960772c7fd023aa0f81d5
tree44c64fc451bedaab8e4dc9f4f03d9b9f8f65e293
parentc52950c292be639aec38f9a5db1681005203c2cd
path-util: make readlink_value() refuse O_DIRECTORY returned from path_extract_filename()

The function is now only used by sd-device.c and pam_systemd.c, and they
expects the result are not directory. Hence, it is safe to change the
behavior.

Addresses https://github.com/systemd/systemd/pull/23089#discussion_r853006017.
src/basic/fs-util.c