diff options
author | Ron Yorston <rmy@pobox.com> | 2024-08-05 14:32:44 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-08-05 14:32:44 +0100 |
commit | e5244175baa5c94726670a6aeb8645428306011a (patch) | |
tree | e86a863bf8717b982a848e1badf4dc059771c9ea /arch | |
parent | 2a09008c8eab35b5cc0422fab333ca657877256c (diff) | |
download | busybox-w32-e5244175baa5c94726670a6aeb8645428306011a.tar.gz busybox-w32-e5244175baa5c94726670a6aeb8645428306011a.tar.bz2 busybox-w32-e5244175baa5c94726670a6aeb8645428306011a.zip |
su: use correct option when cmd.exe is used as shell
Most Unix shells (and PowerShell) use the '-c' option to specify
commands to execute. cmd.exe uses '/c' instead.
Detect when cmd.exe is the 'shell' being used with 'su -s' and
adjust the command option to suit.
Adds 48-56 bytes.
(GitHub issue #438)
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions