aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-03-26 16:47:14 +0000
committerRon Yorston <rmy@pobox.com>2024-03-26 16:47:14 +0000
commit9e2482e93913a7de1f667720a7ac619fe6fdd723 (patch)
treed3a2d4cf188a75d339253ce29704a1091a166762 /arch
parent1eee84b800408e53e659ff303eaa08ee09d67c3b (diff)
downloadbusybox-w32-9e2482e93913a7de1f667720a7ac619fe6fdd723.tar.gz
busybox-w32-9e2482e93913a7de1f667720a7ac619fe6fdd723.tar.bz2
busybox-w32-9e2482e93913a7de1f667720a7ac619fe6fdd723.zip
ash: strip path from NOFORK applet names
Commit 26ba73098 (win32: search PATH for missing Unix-style executables) extended the cases in which PATH would be searched for executables specified with a Unix-style path. A side effect of this change was to pass the Unix-style path as argv[0] to NOFORK applets. The 'uname' applet examines argv[0] to determine how to behave. When invoked as '/bin/uname' it returned unexpected results. Other applets may be similarly affected. When a NOFORK applet is invoked in evalcommand(), strip any path. Costs 16 bytes. (GitHub issue #392)
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions