summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-07-14 20:43:01 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-07-14 20:43:01 +0200
commit4110664d4f25f203b7d76ee56e5e23220b04eb69 (patch)
treed8f23e676d323fbd7dfbdde87d622cdff63c0b04 /udev_rules_parse.c
parent285e2a24f67b1c09d7b4c54587802fc0a9d623eb (diff)
add option to RUN key to ignore the return value of the program
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r--udev_rules_parse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index 9a12d53816..c4fa142b04 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -477,7 +477,10 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
continue;
}
- if (strcasecmp(key, "RUN") == 0) {
+ if (strncasecmp(key, "RUN", sizeof("RUN")-1) == 0) {
+ attr = get_key_attribute(key + sizeof("RUN")-1);
+ if (attr && strstr(attr, "ignore_error"))
+ rule->run_ignore_error = 1;
add_rule_key(rule, &rule->run, operation, value);
valid = 1;
continue;