aboutsummaryrefslogtreecommitdiff
path: root/applets/busybox.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/busybox.c')
-rw-r--r--applets/busybox.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index f3d0c4c2f..7a220f7b0 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -74,13 +74,10 @@ int main(int argc, char **argv)
applet_name = s;
}
-#ifdef BB_SH
- /* Add in a special case hack -- whenever **argv == '-'
- * (i.e., '-su' or '-sh') always invoke the shell */
+ /* Add in a special case hack for a leading hyphen */
if (**argv == '-' && *(*argv+1)!= '-') {
- applet_name = "sh";
+ applet_name = (*argv+1);
}
-#endif
#ifdef BB_LOCALE_SUPPORT
#ifdef BB_INIT