From: Kay Sievers Date: Sat, 22 Oct 2011 18:50:23 +0000 (+0200) Subject: ignore entire rules line if unknown keys are used X-Git-Tag: 175~18 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95691487363ef213fec6975219c87d29415a2479;p=systemd ignore entire rules line if unknown keys are used --- diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 75636d9b..f540a5ae 100644 --- a/udev/udev-rules.c +++ b/udev/udev-rules.c @@ -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 */