X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev_rules_parse.c;h=c4fa142b04a21c078db43607acf7c178d68472c9;hb=4110664d4f25f203b7d76ee56e5e23220b04eb69;hp=9a12d53816e59f4dfaa50d3add57e4c243f5c925;hpb=285e2a24f67b1c09d7b4c54587802fc0a9d623eb;p=elogind.git diff --git a/udev_rules_parse.c b/udev_rules_parse.c index 9a12d5381..c4fa142b0 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;