mirror of
https://github.com/systemd/systemd.git
synced 2025-08-24 09:49:49 +03:00
fix typo in group assignment
Thanks to: Georgi Georgiev
This commit is contained in:
@ -1090,7 +1090,8 @@ EOF
|
|||||||
desc => "ignore rule test",
|
desc => "ignore rule test",
|
||||||
subsys => "block",
|
subsys => "block",
|
||||||
devpath => "/block/sda",
|
devpath => "/block/sda",
|
||||||
exp_name => "node",
|
exp_name => "nothing",
|
||||||
|
not_exp_name => "node",
|
||||||
exp_add_error => "yes",
|
exp_add_error => "yes",
|
||||||
rules => <<EOF
|
rules => <<EOF
|
||||||
BUS=="scsi", KERNEL=="sda", NAME="node", OPTIONS="ignore"
|
BUS=="scsi", KERNEL=="sda", NAME="node", OPTIONS="ignore"
|
||||||
@ -1415,6 +1416,29 @@ KERNEL=="ttyUSB[0-9]*", SYMLINK+="one"
|
|||||||
KERNEL=="ttyUSB[0-9]*", SYMLINK+="two"
|
KERNEL=="ttyUSB[0-9]*", SYMLINK+="two"
|
||||||
KERNEL=="ttyUSB[0-9]*", SYMLINK="three"
|
KERNEL=="ttyUSB[0-9]*", SYMLINK="three"
|
||||||
KERNEL=="ttyUSB[0-9]*", NAME="node"
|
KERNEL=="ttyUSB[0-9]*", NAME="node"
|
||||||
|
EOF
|
||||||
|
},
|
||||||
|
{
|
||||||
|
desc => "test empty NAME",
|
||||||
|
subsys => "tty",
|
||||||
|
devpath => "/class/tty/ttyUSB0",
|
||||||
|
exp_name => "node",
|
||||||
|
not_exp_name => "wrong",
|
||||||
|
exp_add_error => "yes",
|
||||||
|
rules => <<EOF
|
||||||
|
KERNEL=="ttyUSB[0-9]*", NAME=""
|
||||||
|
KERNEL=="ttyUSB[0-9]*", NAME="wrong"
|
||||||
|
EOF
|
||||||
|
},
|
||||||
|
{
|
||||||
|
desc => "test empty NAME 2",
|
||||||
|
subsys => "tty",
|
||||||
|
devpath => "/class/tty/ttyUSB0",
|
||||||
|
exp_name => "right",
|
||||||
|
rules => <<EOF
|
||||||
|
KERNEL=="ttyUSB[0-9]*", NAME="right"
|
||||||
|
KERNEL=="ttyUSB[0-9]*", NAME=""
|
||||||
|
KERNEL=="ttyUSB[0-9]*", NAME="wrong"
|
||||||
EOF
|
EOF
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
@ -409,7 +409,7 @@ static int add_to_rules(struct udev_rules *rules, char *line)
|
|||||||
gid_t gid = lookup_group(value);
|
gid_t gid = lookup_group(value);
|
||||||
dbg("replacing groupname='%s' by id=%i", value, gid);
|
dbg("replacing groupname='%s' by id=%i", value, gid);
|
||||||
sprintf(group, "%li", gid);
|
sprintf(group, "%li", gid);
|
||||||
add_rule_key(rule, &rule->owner, operation, group);
|
add_rule_key(rule, &rule->group, operation, group);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user