aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-11-01 12:50:33 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-11-01 12:50:33 +0100
commitb0df5af0fad7969a10d3910465bfd0ff518b1358 (patch)
treede5d30f78a4a1f32b9d64597707aa4378b0621bf /shell/ash.c
parentca82b5354feca83374c78a7bdd43ef3aab9204e9 (diff)
downloadbusybox-b0df5af0fad7969a10d3910465bfd0ff518b1358.tar.gz
ash: fix thinko in last commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 19004aad8..88f2b5bd6 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8018,8 +8018,7 @@ tryexec(IF_FEATURE_SH_STANDALONE(int applet_no,) const char *cmd, char **argv, c
#if ENABLE_FEATURE_SH_STANDALONE
if (applet_no >= 0) {
# if NUM_SCRIPTS > 0
- if (applet_no >= NUM_APPLETS)
- goto run_script;
+ if (applet_no < NUM_APPLETS)
# endif
if (APPLET_IS_NOEXEC(applet_no)) {
clearenv();
@@ -8045,9 +8044,6 @@ tryexec(IF_FEATURE_SH_STANDALONE(int applet_no,) const char *cmd, char **argv, c
#endif
if (cmd != bb_busybox_exec_path && errno == ENOEXEC) {
-#if ENABLE_FEATURE_SH_STANDALONE && NUM_SCRIPTS > 0
- run_script:
-#endif
/* Run "cmd" as a shell script:
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
* "If the execve() function fails with ENOEXEC, the shell