summaryrefslogtreecommitdiffhomepage
path: root/libbb/executable.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-02 21:28:47 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-02 21:28:47 +0100
commit2075aa93e007863c6b680994a7a0ba420181034f (patch)
tree1e9a01215018359e4a8524a9a044d7a61fae1967 /libbb/executable.c
parentb4f93f562d261a163113cd15cc252c53d2fa27bb (diff)
libbb: rename run_shell() to exec_shell()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 29d2a2c85..a033b74d9 100644
--- a/libbb/executable.c
+++ b/libbb/executable.c
@@ -91,12 +91,3 @@ void FAST_FUNC BB_EXECVP_or_die(char **argv)
xfunc_error_retval = (errno == ENOENT) ? 127 : 126;
bb_perror_msg_and_die("can't execute '%s'", argv[0]);
}
-
-/* Typical idiom for applets which exec *optional* PROG [ARGS] */
-void FAST_FUNC exec_prog_or_SHELL(char **argv)
-{
- if (argv[0]) {
- BB_EXECVP_or_die(argv);
- }
- run_shell(getenv("SHELL"), /*login:*/ 1, NULL);
-}