aboutsummaryrefslogtreecommitdiff
path: root/libbb/executable.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-01-14 13:28:49 +0000
committerRon Yorston <rmy@pobox.com>2021-01-14 13:28:49 +0000
commit89963b524d211e1aec12b72b3725be05ee95c8cf (patch)
tree48590aef62b7ee7686b7898256f29def8d9c50b9 /libbb/executable.c
parent9aa5a829070392c2ac6494d0c4e674c0c2bc7dab (diff)
parent2b7c1aa92c68524559a2067609d09309d5c09adc (diff)
downloadbusybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.tar.gz
busybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.tar.bz2
busybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb/executable.c')
-rw-r--r--libbb/executable.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libbb/executable.c b/libbb/executable.c
index f549a7aae..bd3022b13 100644
--- a/libbb/executable.c
+++ b/libbb/executable.c
@@ -100,12 +100,3 @@ void FAST_FUNC BB_EXECVP_or_die(char **argv)
100 xfunc_error_retval = (errno == ENOENT) ? 127 : 126; 100 xfunc_error_retval = (errno == ENOENT) ? 127 : 126;
101 bb_perror_msg_and_die("can't execute '%s'", argv[0]); 101 bb_perror_msg_and_die("can't execute '%s'", argv[0]);
102} 102}
103
104/* Typical idiom for applets which exec *optional* PROG [ARGS] */
105void FAST_FUNC exec_prog_or_SHELL(char **argv)
106{
107 if (argv[0]) {
108 BB_EXECVP_or_die(argv);
109 }
110 run_shell(getenv("SHELL"), /*login:*/ 1, NULL);
111}