diff options
author | Ron Yorston <rmy@pobox.com> | 2024-06-14 08:12:08 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-06-14 08:12:08 +0100 |
commit | 9ee8e87d5affe019aeb2b8afe4b908672c4c2fa5 (patch) | |
tree | 177dc25062b8eadddc988c638920f417c77bb2b1 /init | |
parent | a518a4f6023582744fa271ec279375dd3d51a4d4 (diff) | |
download | busybox-w32-9ee8e87d5affe019aeb2b8afe4b908672c4c2fa5.tar.gz busybox-w32-9ee8e87d5affe019aeb2b8afe4b908672c4c2fa5.tar.bz2 busybox-w32-9ee8e87d5affe019aeb2b8afe4b908672c4c2fa5.zip |
win32: allow for trailing separator in PATH
In recent versions of Windows the PATH environment variable has
a trailing semicolon. This is insignificant to Windows because
it's ignored. busybox-w32 conforms to the POSIX interpretation
of PATH which treats an empty path element as denoting the current
directory. As result, on these versions of Windows executables
may by default be run from the current directory, contrary to
usual Unix practice.
Attempt to detect and remove the trailing semicolon on applet
start up. If the user insists, they can add a trailing semicolon
to the shell variable PATH and it will be respected in the
conventional manner.
Adds 88-112 bytes.
(GitHub issue #422)
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions