summaryrefslogtreecommitdiff
path: root/libbb/run_shell.c
diff options
context:
space:
mode:
authorManuel Novoa III2003-03-19 09:13:01 +0000
committerManuel Novoa III2003-03-19 09:13:01 +0000
commitcad5364599eb5062d59e0c397ed638ddd61a8d5d (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/run_shell.c
parente01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff)
downloadbusybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip
busybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz
Major coreutils update.
Diffstat (limited to 'libbb/run_shell.c')
-rw-r--r--libbb/run_shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/run_shell.c b/libbb/run_shell.c
index b26eba1..d154b98 100644
--- a/libbb/run_shell.c
+++ b/libbb/run_shell.c
@@ -57,11 +57,11 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c
else
args = (const char **) xmalloc (sizeof (char *) * 4 );
- args [0] = get_last_path_component ( xstrdup ( shell ));
+ args [0] = bb_get_last_path_component ( bb_xstrdup ( shell ));
if ( loginshell ) {
char *args0;
- bb_asprintf ( &args0, "-%s", args [0] );
+ bb_xasprintf ( &args0, "-%s", args [0] );
args [0] = args0;
}
@@ -75,6 +75,6 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c
}
args [argno] = 0;
execv ( shell, (char **) args );
- perror_msg_and_die ( "cannot run %s", shell );
+ bb_perror_msg_and_die ( "cannot run %s", shell );
}