]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/execute.c
Merge pull request #20419 from keszybz/setenv-no-value
[thirdparty/systemd.git] / src / core / execute.c
index 5bee44ac7b512c9616514c6590af599258c9aa1a..c1fad61554825ae48f3f4b8212f55f0b1112ced7 100644 (file)
@@ -4350,7 +4350,7 @@ static int exec_child(
 
         _cleanup_free_ char *executable = NULL;
         _cleanup_close_ int executable_fd = -1;
-        r = find_executable_full(command->path, false, &executable, &executable_fd);
+        r = find_executable_full(command->path, /* root= */ NULL, false, &executable, &executable_fd);
         if (r < 0) {
                 if (r != -ENOMEM && (command->flags & EXEC_COMMAND_IGNORE_FAILURE)) {
                         log_unit_struct_errno(unit, LOG_INFO, r,