mirror of
https://github.com/systemd/systemd.git
synced 2025-03-24 14:50:17 +03:00
fix SYMLINK{} option parsing
This commit is contained in:
parent
24355313dc
commit
bcb8b2315b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user