From: Kay Sievers Date: Wed, 16 Sep 2009 16:14:03 +0000 (+0200) Subject: fix SYMLINK{} option parsing X-Git-Tag: 174~769 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcb8b2315b192b03caa1a61d9d4e7704b7a742f3;p=systemd fix SYMLINK{} option parsing --- 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 {