]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: make device_set_syspath() clear sysname and sysnum
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jan 2023 05:00:09 +0000 (14:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jan 2023 05:00:20 +0000 (14:00 +0900)
commit9a26098e90116fdb5fcffa03485b375ee0c82b6a
tree61aab0dbbdbc755265cd9b48cee174c5eeab0373
parentbb1234d1d6b7b14424093a917890bb4013b4ff3e
sd-device: make device_set_syspath() clear sysname and sysnum

Otherwise, when a new syspath is assigned to the sd-device object,
sd_device_get_sysname() or _sysnum() will provide an outdated device
name or number.
src/libsystemd/sd-device/device-private.c
src/libsystemd/sd-device/sd-device.c