]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: fix validation for devices under /sys/firmware/ in sd_device_new_from_subs... 35863/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 4 Jan 2025 18:52:05 +0000 (03:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 4 Jan 2025 18:52:05 +0000 (03:52 +0900)
commit3328d1e1816f408e6516c35991a89a8d21fd60b4
tree50b52b8f6be8ef653c98257f07f44e5f0316da79
parent7e5238625ed4a879c2fe8ff7e457021d174bf083
sd-device: fix validation for devices under /sys/firmware/ in sd_device_new_from_subsystem_sysname()

Devices under /sys/firmware/ do not have subsystems. Hence, the
validation in sd_device_new_from_subsystem_sysname() ->
device_new_from_path_join() always failed.

Fixes a bug introduced by cd7c71154cd62d3f50c07ce387edd9c20aebd7bc (v257).
Fixes #35861.
src/libsystemd/sd-device/sd-device.c