summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-10-22 20:50:23 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-10-22 20:50:23 +0200
commit95691487363ef213fec6975219c87d29415a2479 (patch)
treef614246d9e536855273a1650befef5d4a2200ccf
parentaf9cfc11909b3c33f86f495fc0a48e53fdabb32d (diff)
ignore entire rules line if unknown keys are used
-rw-r--r--udev/udev-rules.c2
1 files changed, 2 insertions, 0 deletions
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 */