]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: run programs in the specified order
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Mar 2019 19:01:34 +0000 (04:01 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Mar 2019 08:27:29 +0000 (09:27 +0100)
commit39a15c8a8dad26deda140867f03e44a535b7bd8d
tree1afd5a9d50431156b5b8e4078983fd024a8c267b
parent0dcb426328b16cb1f59b2bf3e8d6f51805442abf
udev: run programs in the specified order

This fixes bugs introduced by 29448498c724da7ade1b5efb20d7472c1b128d2c
and d838e14515c82b05a07f2bf393cce057b45b2b53.

Previously, RUN and SECLABEL keys are stored in udev_list with its unique
flag is false. If the flag is false, then udev_list is just a linked
list and new entries are always added in the last.
So, we should use OrderedHashmap instead of Hashmap.

Fixes #11368.
src/udev/udev-event.c
src/udev/udev-node.c
src/udev/udev-node.h
src/udev/udev-rules.c
src/udev/udev.h
src/udev/udevadm-test.c