summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-11-07 16:00:41 +0100
committerKay Sievers <kay.sievers@suse.de>2005-11-07 16:00:41 +0100
commit271c2d7d26132858a3302208dfe1572aa9cbbd12 (patch)
tree8ba208b83a332981ce4ed624e025bfb21fb927ad /udev_rules_parse.c
parentfc465079caefbbfb838019e3c2b86ffa3e889efa (diff)
let NAME="" supress node creation, but do RUN keys
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r--udev_rules_parse.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index 6e978d74b4..9041c383e0 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -413,12 +413,9 @@ static int add_to_rules(struct udev_rules *rules, char *line)
rule->ignore_remove = 1;
}
}
- if (value[0] == '\0') {
- dbg("name empty device should be ignored");
- rule->name.operation = operation;
- rule->ignore_device = 1;
- } else
- add_rule_key(rule, &rule->name, operation, value);
+ if (value[0] == '\0')
+ dbg("name empty, not creation supressed");
+ add_rule_key(rule, &rule->name, operation, value);
continue;
}