mirror of
https://github.com/systemd/systemd.git
synced 2025-02-09 13:57:42 +03:00
core/load-fragment: empty assignment to PIDFile= resets the value
Follow-up for a9353a5c5b512f107955e56a9812724f40b841d3.
This commit is contained in:
parent
e327272d79
commit
b8055c05e2
@ -4254,6 +4254,12 @@ int config_parse_pid_file(
|
||||
assert(rvalue);
|
||||
assert(u);
|
||||
|
||||
if (isempty(rvalue)) {
|
||||
/* An empty assignment removes already set value. */
|
||||
*s = mfree(*s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
r = unit_full_printf(u, rvalue, &k);
|
||||
if (r < 0) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, r, "Failed to resolve unit specifiers in '%s', ignoring: %m", rvalue);
|
||||
|
Loading…
x
Reference in New Issue
Block a user