chiark / gitweb /
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 75636d9..f540a5a 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 */