mirror of
https://github.com/systemd/systemd.git
synced 2026-07-11 18:13:31 +00:00
load-fragment: make WorkingDirectory= accept the empty string
This commit is contained in:
@@ -2122,6 +2122,12 @@ int config_parse_working_directory(
|
||||
assert(c);
|
||||
assert(u);
|
||||
|
||||
if (isempty(rvalue)) {
|
||||
c->working_directory_home = false;
|
||||
c->working_directory = mfree(c->working_directory);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (rvalue[0] == '-') {
|
||||
missing_ok = true;
|
||||
rvalue++;
|
||||
|
||||
Reference in New Issue
Block a user