chiark / gitweb /
libudev: list - properly sort linked list not only the index
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 28 Aug 2011 20:41:46 +0000 (22:41 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 28 Aug 2011 20:45:34 +0000 (22:45 +0200)
commitc99b72121fb965920652ea5e7a1d7f962385626b
tree600e38bb9c1ddb8802acdf8d5f4d71c93f8725ec
parent1484205c47cf395fe21e0dac249b8534d03c3fe2
libudev: list - properly sort linked list not only the index

<mgorny> it seems that udev-git is b0rked while tag '173' works fine for me
<mgorny> the rule in question is:
<mgorny> also, with >173 persistent-net rules seem to get constantly recreated
         for same devices
<kay> mgorny: logic bug. we only sort the keys in an index, but we don't care
      about the index when reading the list, which doesn't work too well for
      the rules file list where we depend on the order
libudev/libudev-list.c