From c0ebcb818efe8d828c6ba7dd1155ec14ac7161d4 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 5 Apr 2025 22:56:19 +0200 Subject: [PATCH] build-path: teach pin_callout_binary() to search $PATH too Prompted by 2caa462504af4f29a2df6805639b026d901099cd --- src/basic/build-path.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/basic/build-path.c b/src/basic/build-path.c index 95de7d3ca34..5d93bded4d3 100644 --- a/src/basic/build-path.c +++ b/src/basic/build-path.c @@ -278,7 +278,9 @@ int pin_callout_binary(const char *path, char **ret_path) { return fd; } - r = open_and_check_executable(path, /* root = */ NULL, ret_path, &fd); + r = find_executable_full(path, /* root = */ NULL, + /* exec_search_path = */ NULL, /* use_path_envvar = */ true, + ret_path, &fd); if (r < 0) return r; -- 2.47.3