]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: refuse O_DIRECTORY returned from path_extract_filename()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Apr 2022 16:43:11 +0000 (01:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Apr 2022 16:43:27 +0000 (01:43 +0900)
commite4e1353c251e253b7cdf48db41b27572b6ed9172
tree513f2c440a25ead8a58216b68fd74a7f9ac274d7
parentbb60956b393c3534fb4960772c7fd023aa0f81d5
sd-device: refuse O_DIRECTORY returned from path_extract_filename()

In both cases, it is expected that the symlink targets do not end with '/'.

Addresses https://github.com/systemd/systemd/pull/23089#discussion_r853007218.
src/libsystemd/sd-device/sd-device.c