mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
don't resolve OWNER, GROUP on precompile if string contains %, $
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
parent
f41951c840
commit
2858b86c6a
@ -371,7 +371,7 @@ static int add_to_rules(struct udev_rules *rules, char *line)
|
||||
|
||||
if (strcasecmp(key, "OWNER") == 0) {
|
||||
valid = 1;
|
||||
if (rules->resolve_names) {
|
||||
if (rules->resolve_names && (!strchr(value, '$') && !strchr(value, '%'))) {
|
||||
char *endptr;
|
||||
strtoul(value, &endptr, 10);
|
||||
if (endptr[0] != '\0') {
|
||||
@ -390,7 +390,7 @@ static int add_to_rules(struct udev_rules *rules, char *line)
|
||||
|
||||
if (strcasecmp(key, "GROUP") == 0) {
|
||||
valid = 1;
|
||||
if (rules->resolve_names) {
|
||||
if (rules->resolve_names && (!strchr(value, '$') && !strchr(value, '%'))) {
|
||||
char *endptr;
|
||||
strtoul(value, &endptr, 10);
|
||||
if (endptr[0] != '\0') {
|
||||
|
Loading…
Reference in New Issue
Block a user