aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-10 14:38:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-10 14:38:47 +0000
commit82d38dab917754c9c37aaa7e414a47318b5082fe (patch)
treeea00ffed0879edb0f2dce87953d6f9c5908a18bf /shell/ash.c
parent141750e38897900db98eaeab1ea35c18f5794023 (diff)
downloadbusybox-w32-82d38dab917754c9c37aaa7e414a47318b5082fe.tar.gz
busybox-w32-82d38dab917754c9c37aaa7e414a47318b5082fe.tar.bz2
busybox-w32-82d38dab917754c9c37aaa7e414a47318b5082fe.zip
get rid of global "struct bb_applet *current_applet"
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 8b21e655c..af96c4d1d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -6470,10 +6470,8 @@ tryexec(char *cmd, char **argv, char **envp)
6470 6470
6471 a = find_applet_by_name(cmd); 6471 a = find_applet_by_name(cmd);
6472 if (a) { 6472 if (a) {
6473 if (a->noexec) { 6473 if (a->noexec)
6474 current_applet = a; 6474 run_appletstruct_and_exit(a, argv);
6475 run_current_applet_and_exit(argv);
6476 }
6477 /* re-exec ourselves with the new arguments */ 6475 /* re-exec ourselves with the new arguments */
6478 execve(bb_busybox_exec_path, argv, envp); 6476 execve(bb_busybox_exec_path, argv, envp);
6479 /* If they called chroot or otherwise made the binary no longer 6477 /* If they called chroot or otherwise made the binary no longer