mirror of https://github.com/mirror/busybox.git
ash: fix thinko in last commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_30_stable
parent
ca82b5354f
commit
b0df5af0fa
|
@ -8018,8 +8018,7 @@ tryexec(IF_FEATURE_SH_STANDALONE(int applet_no,) const char *cmd, char **argv, c
|
||||||
#if ENABLE_FEATURE_SH_STANDALONE
|
#if ENABLE_FEATURE_SH_STANDALONE
|
||||||
if (applet_no >= 0) {
|
if (applet_no >= 0) {
|
||||||
# if NUM_SCRIPTS > 0
|
# if NUM_SCRIPTS > 0
|
||||||
if (applet_no >= NUM_APPLETS)
|
if (applet_no < NUM_APPLETS)
|
||||||
goto run_script;
|
|
||||||
# endif
|
# endif
|
||||||
if (APPLET_IS_NOEXEC(applet_no)) {
|
if (APPLET_IS_NOEXEC(applet_no)) {
|
||||||
clearenv();
|
clearenv();
|
||||||
|
@ -8045,9 +8044,6 @@ tryexec(IF_FEATURE_SH_STANDALONE(int applet_no,) const char *cmd, char **argv, c
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (cmd != bb_busybox_exec_path && errno == ENOEXEC) {
|
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:
|
/* Run "cmd" as a shell script:
|
||||||
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
|
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
|
||||||
* "If the execve() function fails with ENOEXEC, the shell
|
* "If the execve() function fails with ENOEXEC, the shell
|
||||||
|
|
Loading…
Reference in New Issue