aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/process.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-20 11:02:38 +0200
committerGitHub Enterprise <[email protected]>2026-04-20 11:02:38 +0200
commit4d828df648b9e5093f3509cbeeb5887de8920ede (patch)
treeee8f8cf94d7a598bb773d6aa5d3f9d24b0635a47 /src/zencore/process.cpp
parentzencore: CreateProc stdin pipes + BuildArgV quote stripping (#983) (diff)
downloadarchived-zen-4d828df648b9e5093f3509cbeeb5887de8920ede.tar.xz
archived-zen-4d828df648b9e5093f3509cbeeb5887de8920ede.zip
zencore: implement SearchPathForExecutable on POSIX (#981)
- The Linux/macOS branch of `SearchPathForExecutable` was previously a no-op that returned the input unchanged. Callers passing a bare executable name (e.g. `llvm-symbolizer`) got the same bare name back even when the binary lived elsewhere on `PATH`. - Now walks `$PATH` like `execvp` does: skip the search if the input contains a `/`, try each colon-separated entry (empty entry == cwd), and return the first candidate that is both a regular file and executable by the current user. Falls back to returning the input unchanged if nothing matches, preserving the previous behavior for the no-match case. - Windows branch is unchanged (still uses `SearchPathW`).
Diffstat (limited to 'src/zencore/process.cpp')
0 files changed, 0 insertions, 0 deletions