diff options
author | Ron Yorston <rmy@pobox.com> | 2024-07-20 10:03:51 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-07-20 10:31:49 +0100 |
commit | d18c624d993b7846fb13053bb7dc7bf1a12770ce (patch) | |
tree | 8d6ca12835230eb552375c2541f65ff4bf7ffc46 /libbb | |
parent | 640ac19cd76573a307d39e06bc3d22a38194a76f (diff) | |
download | busybox-w32-d18c624d993b7846fb13053bb7dc7bf1a12770ce.tar.gz busybox-w32-d18c624d993b7846fb13053bb7dc7bf1a12770ce.tar.bz2 busybox-w32-d18c624d993b7846fb13053bb7dc7bf1a12770ce.zip |
win32: consolidate executable handling in popen.c
Commit f444dc586 (win32: only search PATH for compressor) made
mingw_fork_compressor() perform a PATH lookup for the xz and lzma
compression programs. This avoided relying on CreateProcess() to
perform the search.
Other callers of the pipe creation code should also avoid reliance
on CreateProcess's executable search:
- Move the applet test and PATH lookup into mingw_popen_internal().
The first argument to CreateProcess() will always be a path to
an executable.
- mingw_fork_compressor() uses the new "w+" mode to indicate that
xz and lzma compressors should be found on PATH.
- mingw_popen() no longer needs to check for an applet itself, as
that's now handled in mingw_popen_internal().
- spawn_ssl_client() in 'wget' can rely on the popen code to look
up the 'ssl_client' applet.
- Remove unnecessary argument checks in mingw_popen_internal().
Adds 0-24 bytes.
Diffstat (limited to 'libbb')
0 files changed, 0 insertions, 0 deletions