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)
committerMichael Biebl <biebl@debian.org>
Wed, 29 Jan 2020 18:07:53 +0000 (18:07 +0000)
commit89069c7feeac711262307beac93865738b72b42d
tree5efa06e8e85a264171b7649fe756e206cdbd5d4a
parentc699f77a3e9cfc050f8142b6ee1df28782e4faeb
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.

(cherry picked from commit 39a15c8a8dad26deda140867f03e44a535b7bd8d)

Gbp-Pq: Name udev-run-programs-in-the-specified-order.patch
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