From bcb8b2315b192b03caa1a61d9d4e7704b7a742f3 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 16 Sep 2009 18:14:03 +0200 Subject: [PATCH] fix SYMLINK{} option parsing --- udev/udev-rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 904ddac7..ddb51de8 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 { -- 2.39.5