diff options
| author | divens <divens@users.noreply.github.com> | 2026-07-21 12:18:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-21 12:18:04 +0200 |
| commit | 812ad861bc3f4a8ba6f411c1a3b1163bfef43766 (patch) | |
| tree | 7d1465894b61ca01a309aac6ba581e95240acf50 /zellij-integration-tests | |
| parent | Stacked resize list fixes (#5379) (diff) | |
| download | sl0ppij-812ad861bc3f4a8ba6f411c1a3b1163bfef43766.tar.gz sl0ppij-812ad861bc3f4a8ba6f411c1a3b1163bfef43766.tar.xz sl0ppij-812ad861bc3f4a8ba6f411c1a3b1163bfef43766.zip | |
fix(windows): prefer PATHEXT variants over bare filename in resolver (#5364)
`find_executable` used to short-circuit on the first exists()-and-is_file
match and only consult PATHEXT if no bare file was present. That returned
the wrong file for tools whose Windows installer ships both a Unix-style
launcher and a `.bat` alongside it. The reported case is Composer, whose
setup places bare `composer` (a Unix launcher, invalid PE on Windows) next
to `composer.bat`. The bare file was resolved and handed to CreateProcessW,
which rejected it with ERROR_BAD_EXE_FORMAT.
On Windows, when the candidate has no user-supplied extension, walk PATHEXT
first and only fall back to the bare match if nothing matches. This mirrors
cmd.exe's and powershell's resolution.
Diffstat (limited to 'zellij-integration-tests')
0 files changed, 0 insertions, 0 deletions
