]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/load-fragment: also clear missing_ok when WorkingDirectory=""
authorMike Yuan <me@yhndnzj.com>
Sat, 25 May 2024 17:16:17 +0000 (01:16 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 26 May 2024 05:40:48 +0000 (13:40 +0800)
src/core/load-fragment.c

index 8215a66e31a3926cb64d750b5f79259a65d7cd0d..5ae68886afe79229d81bb8029481754d69d64b64 100644 (file)
@@ -2608,6 +2608,7 @@ int config_parse_working_directory(
         assert(rvalue);
 
         if (isempty(rvalue)) {
+                c->working_directory_missing_ok = false;
                 c->working_directory_home = false;
                 c->working_directory = mfree(c->working_directory);
                 return 0;