]> err.no Git - systemd/commitdiff
ignore entire rules line if unknown keys are used
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 22 Oct 2011 18:50:23 +0000 (20:50 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 22 Oct 2011 18:50:23 +0000 (20:50 +0200)
udev/udev-rules.c

index 75636d9bd6ee52685541356a1f5100d8078c6dee..f540a5ae7ba20db294783cef217f8a6f9b3ef211 100644 (file)
@@ -1612,7 +1612,9 @@ static int add_rule(struct udev_rules *rules, char *line,
 
                        continue;
                }
+
                err(rules->udev, "unknown key '%s' in %s:%u\n", key, filename, lineno);
+               goto invalid;
        }
 
        /* add rule token */