diff options
-rw-r--r-- | applets/busybox.c | 7 | ||||
-rw-r--r-- | busybox.c | 7 |
2 files changed, 4 insertions, 10 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) | |||
74 | applet_name = s; | 74 | applet_name = s; |
75 | } | 75 | } |
76 | 76 | ||
77 | #ifdef BB_SH | 77 | /* Add in a special case hack for a leading hyphen */ |
78 | /* Add in a special case hack -- whenever **argv == '-' | ||
79 | * (i.e., '-su' or '-sh') always invoke the shell */ | ||
80 | if (**argv == '-' && *(*argv+1)!= '-') { | 78 | if (**argv == '-' && *(*argv+1)!= '-') { |
81 | applet_name = "sh"; | 79 | applet_name = (*argv+1); |
82 | } | 80 | } |
83 | #endif | ||
84 | 81 | ||
85 | #ifdef BB_LOCALE_SUPPORT | 82 | #ifdef BB_LOCALE_SUPPORT |
86 | #ifdef BB_INIT | 83 | #ifdef BB_INIT |
@@ -74,13 +74,10 @@ int main(int argc, char **argv) | |||
74 | applet_name = s; | 74 | applet_name = s; |
75 | } | 75 | } |
76 | 76 | ||
77 | #ifdef BB_SH | 77 | /* Add in a special case hack for a leading hyphen */ |
78 | /* Add in a special case hack -- whenever **argv == '-' | ||
79 | * (i.e., '-su' or '-sh') always invoke the shell */ | ||
80 | if (**argv == '-' && *(*argv+1)!= '-') { | 78 | if (**argv == '-' && *(*argv+1)!= '-') { |
81 | applet_name = "sh"; | 79 | applet_name = (*argv+1); |
82 | } | 80 | } |
83 | #endif | ||
84 | 81 | ||
85 | #ifdef BB_LOCALE_SUPPORT | 82 | #ifdef BB_LOCALE_SUPPORT |
86 | #ifdef BB_INIT | 83 | #ifdef BB_INIT |