summaryrefslogtreecommitdiff
path: root/udev/udev-rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-09-16 18:14:03 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-09-16 18:14:03 +0200
commitbcb8b2315b192b03caa1a61d9d4e7704b7a742f3 (patch)
tree922c38e5670aa8ce197697349f027502b133d130 /udev/udev-rules.c
parent24355313dc9686a14a618fcd9bbdedc29c57b651 (diff)
fix SYMLINK{} option parsing
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r--udev/udev-rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index 904ddac72c..ddb51de8e1 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -1435,7 +1435,7 @@ static int add_rule(struct udev_rules *rules, char *line,
continue;
}
- if (strcmp(key, "SYMLINK") == 0) {
+ if (strncmp(key, "SYMLINK", sizeof("SYMLINK")-1) == 0) {
if (op < OP_MATCH_MAX) {
rule_add_key(&rule_tmp, TK_M_DEVLINK, op, value, NULL);
} else {