summaryrefslogtreecommitdiffstats
path: root/src/analyze
diff options
context:
space:
mode:
authoralexlzhu <alexlzhu@devvm2387.atn0.facebook.com>2021-07-09 02:10:47 +0200
committerChris Down <chris@chrisdown.name>2021-09-28 15:52:27 +0200
commit8c35c10d20ff7b369bfff3fbbb92a43ca2fd5938 (patch)
treebe87626fe62937be49a7b3388d75d44623ed2c5d /src/analyze
parentMerge pull request #20837 from bluca/coveralls (diff)
downloadsystemd-8c35c10d20ff7b369bfff3fbbb92a43ca2fd5938.tar.xz
systemd-8c35c10d20ff7b369bfff3fbbb92a43ca2fd5938.zip
core: Add ExecSearchPath parameter to specify the directory relative to which binaries executed by Exec*= should be found
Currently there does not exist a way to specify a path relative to which all binaries executed by Exec should be found. The only way is to specify the absolute path. This change implements the functionality to specify a path relative to which binaries executed by Exec*= can be found. Closes #6308
Diffstat (limited to 'src/analyze')
-rw-r--r--src/analyze/analyze-verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze-verify.c b/src/analyze/analyze-verify.c
index 2a436c545e..f3e5d3530d 100644
--- a/src/analyze/analyze-verify.c
+++ b/src/analyze/analyze-verify.c
@@ -142,7 +142,7 @@ int verify_executable(Unit *u, const ExecCommand *exec, const char *root) {
if (exec->flags & EXEC_COMMAND_IGNORE_FAILURE)
return 0;
- r = find_executable_full(exec->path, root, false, NULL, NULL);
+ r = find_executable_full(exec->path, root, NULL, false, NULL, NULL);
if (r < 0)
return log_unit_error_errno(u, r, "Command %s is not executable: %m", exec->path);