diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-16 20:16:47 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-16 20:16:47 +0200 |
commit | a7567d497333f7f845c634d477c01d90b954a570 (patch) | |
tree | 9ca61f875bc201bb1a105d5e8df8b5f780d8ba33 | |
parent | 82d4209792035676f1aea2cdaa38bbbf2bd43e04 (diff) |
do not ignore dynamic rule if it is the last one in the list
-rw-r--r-- | udev_rules_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c index 81c24b9cc1..3afc31a0fa 100644 --- a/udev_rules_parse.c +++ b/udev_rules_parse.c @@ -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; } } + |