diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-20 17:39:53 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-20 17:39:53 +0000 |
commit | ba372620c256b23340c5630098f1a81c10022386 (patch) | |
tree | 4d5ab519cca1b5a2c748a2e1e341cbb641325817 /applets | |
parent | 7ef1a5beb27b26e5f6cecd632b299a6ab0424c67 (diff) | |
download | busybox-w32-ba372620c256b23340c5630098f1a81c10022386.tar.gz busybox-w32-ba372620c256b23340c5630098f1a81c10022386.tar.bz2 busybox-w32-ba372620c256b23340c5630098f1a81c10022386.zip |
Force applet_name to be "sh" when command prefaced by "-"
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index 2872f1e38..03a2525a3 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -93,7 +93,7 @@ int main(int argc, char **argv) | |||
93 | /* Add in a special case hack -- whenever **argv == '-' | 93 | /* Add in a special case hack -- whenever **argv == '-' |
94 | * (i.e. '-su' or '-sh') always invoke the shell */ | 94 | * (i.e. '-su' or '-sh') always invoke the shell */ |
95 | if (**argv == '-' && *(*argv+1)!= '-') { | 95 | if (**argv == '-' && *(*argv+1)!= '-') { |
96 | exit(((*(shell_main)) (argc, argv))); | 96 | applet_name = "sh"; |
97 | } | 97 | } |
98 | #endif | 98 | #endif |
99 | 99 | ||