1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

core: fix resetting of Delegate= and properly ignore invalid assignment

The default is false not true. If we say "ignoring" we must return 0.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-04-18 19:50:07 +02:00
parent edd1dcd091
commit ff1b8455c2

View File

@ -3411,7 +3411,7 @@ int config_parse_delegate(
* mask to delegate. */
if (isempty(rvalue)) {
c->delegate = true;
c->delegate = false;
c->delegate_controllers = 0;
return 0;
}
@ -3432,7 +3432,7 @@ int config_parse_delegate(
return log_oom();
if (r < 0) {
log_syntax(unit, LOG_ERR, filename, line, r, "Invalid syntax, ignoring: %s", rvalue);
return r;
return 0;
}
cc = cgroup_controller_from_string(word);