aboutsummaryrefslogtreecommitdiff
path: root/libbb/executable.c
diff options
context:
space:
mode:
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}