diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-20 20:39:53 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-20 20:39:53 +0300 |
commit | ba372620c256b23340c5630098f1a81c10022386 (patch) | |
tree | 4d5ab519cca1b5a2c748a2e1e341cbb641325817 /busybox.c | |
parent | 7ef1a5beb27b26e5f6cecd632b299a6ab0424c67 (diff) |
Force applet_name to be "sh" when command prefaced by "-"
Diffstat (limited to 'busybox.c')
-rw-r--r-- | busybox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -93,7 +93,7 @@ int main(int argc, char **argv) /* Add in a special case hack -- whenever **argv == '-' * (i.e. '-su' or '-sh') always invoke the shell */ if (**argv == '-' && *(*argv+1)!= '-') { - exit(((*(shell_main)) (argc, argv))); + applet_name = "sh"; } #endif |