aboutsummaryrefslogtreecommitdiff
path: root/win32/mingw.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-03-19 10:26:24 +0000
committerRon Yorston <rmy@pobox.com>2023-03-19 10:26:24 +0000
commitd9e8bb61cf380264511a4524281af2ca57498bce (patch)
treeaa4b3f77fb99554eae734f4e3f97d93a409874b5 /win32/mingw.c
parentb0e7a401d51402c052563f55331c8b9001a1215c (diff)
downloadbusybox-w32-d9e8bb61cf380264511a4524281af2ca57498bce.tar.gz
busybox-w32-d9e8bb61cf380264511a4524281af2ca57498bce.tar.bz2
busybox-w32-d9e8bb61cf380264511a4524281af2ca57498bce.zip
drop: add cdrop and pdrop aliases
Add cdrop and pdrop applets as aliases for drop. If a command isn't specified these use cmd.exe and PowerShell instead of the BusyBox shell. This makes it possible to choose the default shell used for SSH connections even in older versions of OpenSSH that don't support the DefaultShellArguments registry key. Note that to get cmd.exe to run a command rather than an interactive shell it's necessary to set the DefaultShellCommandOption registry key to '/c'. Costs 248-272 bytes.
Diffstat (limited to 'win32/mingw.c')
-rw-r--r--win32/mingw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index 1fdb8cad9..011bc5ffb 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -1136,7 +1136,7 @@ char *get_user_name(void)
1136 return user_name; 1136 return user_name;
1137} 1137}
1138 1138
1139#if ENABLE_DROP 1139#if ENABLE_DROP || ENABLE_CDROP || ENABLE_PDROP
1140/* 1140/*
1141 * When runuser drops privileges TokenIsElevated still returns TRUE. 1141 * When runuser drops privileges TokenIsElevated still returns TRUE.
1142 * Use other means to determine if we're actually unprivileged. 1142 * Use other means to determine if we're actually unprivileged.