aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-08-05 14:32:44 +0100
committerRon Yorston <rmy@pobox.com>2024-08-05 14:32:44 +0100
commite5244175baa5c94726670a6aeb8645428306011a (patch)
treee86a863bf8717b982a848e1badf4dc059771c9ea /init
parent2a09008c8eab35b5cc0422fab333ca657877256c (diff)
downloadbusybox-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 'init')
0 files changed, 0 insertions, 0 deletions