From 95691487363ef213fec6975219c87d29415a2479 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 22 Oct 2011 20:50:23 +0200 Subject: ignore entire rules line if unknown keys are used --- udev/udev-rules.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 75636d9bd6..f540a5ae7b 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 */ -- cgit v1.2.3-54-g00ecf