diff options
author | Ron Yorston <rmy@pobox.com> | 2024-03-26 16:47:14 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-03-26 16:47:14 +0000 |
commit | 9e2482e93913a7de1f667720a7ac619fe6fdd723 (patch) | |
tree | d3a2d4cf188a75d339253ce29704a1091a166762 /TODO | |
parent | 1eee84b800408e53e659ff303eaa08ee09d67c3b (diff) | |
download | busybox-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 'TODO')
0 files changed, 0 insertions, 0 deletions