chiark / gitweb /
do not ignore dynamic rule if it is the last one in the list
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 16 Aug 2007 18:16:47 +0000 (20:16 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 16 Aug 2007 18:16:47 +0000 (20:16 +0200)
udev_rules_parse.c

index 81c24b9..3afc31a 100644 (file)
@@ -757,11 +757,10 @@ int udev_rules_init(struct udev_rules *rules, int resolve_names)
                        if (name_base == NULL)
                                continue;
 
-                       if (strcmp(name_base, dyn_base) > 0) {
-                               list_move_tail(&dyn_loop->node, &name_loop->node);
+                       if (strcmp(name_base, dyn_base) > 0)
                                break;
-                       }
                }
+               list_move_tail(&dyn_loop->node, &name_loop->node);
        }
 
        /* parse list of files */
@@ -787,3 +786,4 @@ void udev_rules_cleanup(struct udev_rules *rules)
                rules->buf = NULL;
        }
 }
+