]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device-enumerator: introduce device_enumerator_sort_devices()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Mar 2022 13:40:49 +0000 (22:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 Mar 2022 02:56:18 +0000 (11:56 +0900)
commit87c3a0f9f87b02166bfe1e25c859c3a28892822b
tree3d6a831e582f042cbe90b9abe2e99d5d8f238b0d
parentdeac0c9c044302d22549e1aabbf6f730c3161c97
sd-device-enumerator: introduce device_enumerator_sort_devices()

and devices are sorted when the iteration started.

Previously, devices added by udev_enumerate_add_syspath() ->
device_enumerator_add_device() are not sorted. This fixes the issue.
src/libsystemd/sd-device/device-enumerator.c