mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
udev-rules: update log messages about OWNER= or GROUP= settings on --resolve=names=never
This also set lower log level for the messages.
6e2efb6c73
introduces the log messages.
But udevd may be started with --resolve-names=never, and the behavior
is expected.
Fixes #11720.
This commit is contained in:
parent
2c633a821e
commit
57f08d5cdd
@ -1384,7 +1384,7 @@ static void add_rule(UdevRules *rules, char *line,
|
||||
} else if (rules->resolve_name_timing != RESOLVE_NAME_NEVER)
|
||||
r = rule_add_key(&rule_tmp, TK_A_OWNER, op, value, NULL);
|
||||
else {
|
||||
LOG_RULE_ERROR("Invalid %s operation", key);
|
||||
LOG_RULE_DEBUG("Resolving user name is disabled, ignoring %s=%s", key, value);
|
||||
continue;
|
||||
}
|
||||
if (r < 0)
|
||||
@ -1408,7 +1408,7 @@ static void add_rule(UdevRules *rules, char *line,
|
||||
} else if (rules->resolve_name_timing != RESOLVE_NAME_NEVER)
|
||||
r = rule_add_key(&rule_tmp, TK_A_GROUP, op, value, NULL);
|
||||
else {
|
||||
LOG_RULE_ERROR("Invalid %s operation", key);
|
||||
LOG_RULE_DEBUG("Resolving group name is disabled, ignoring %s=%s", key, value);
|
||||
continue;
|
||||
}
|
||||
if (r < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user