chiark / gitweb /
fix SYMLINK{} option parsing
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 16 Sep 2009 16:14:03 +0000 (18:14 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 16 Sep 2009 16:14:03 +0000 (18:14 +0200)
udev/udev-rules.c

index 904ddac..ddb51de 100644 (file)
@@ -1435,7 +1435,7 @@ static int add_rule(struct udev_rules *rules, char *line,
                        continue;
                }
 
                        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 {
                        if (op < OP_MATCH_MAX) {
                                rule_add_key(&rule_tmp, TK_M_DEVLINK, op, value, NULL);
                        } else {