From: Mike Yuan Date: Sat, 5 Apr 2025 20:56:19 +0000 (+0200) Subject: build-path: teach pin_callout_binary() to search $PATH too X-Git-Tag: v258-rc1~902^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F37025%2Fhead;p=thirdparty%2Fsystemd.git build-path: teach pin_callout_binary() to search $PATH too Prompted by 2caa462504af4f29a2df6805639b026d901099cd --- 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;