aboutsummaryrefslogtreecommitdiff
path: root/libbb/run_shell.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-03-19 09:13:01 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-03-19 09:13:01 +0000
commitcad5364599eb5062d59e0c397ed638ddd61a8d5d (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/run_shell.c
parente01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff)
downloadbusybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz
busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.bz2
busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip
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 b26eba115..d154b9852 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
57 else 57 else
58 args = (const char **) xmalloc (sizeof (char *) * 4 ); 58 args = (const char **) xmalloc (sizeof (char *) * 4 );
59 59
60 args [0] = get_last_path_component ( xstrdup ( shell )); 60 args [0] = bb_get_last_path_component ( bb_xstrdup ( shell ));
61 61
62 if ( loginshell ) { 62 if ( loginshell ) {
63 char *args0; 63 char *args0;
64 bb_asprintf ( &args0, "-%s", args [0] ); 64 bb_xasprintf ( &args0, "-%s", args [0] );
65 args [0] = args0; 65 args [0] = args0;
66 } 66 }
67 67
@@ -75,6 +75,6 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c
75 } 75 }
76 args [argno] = 0; 76 args [argno] = 0;
77 execv ( shell, (char **) args ); 77 execv ( shell, (char **) args );
78 perror_msg_and_die ( "cannot run %s", shell ); 78 bb_perror_msg_and_die ( "cannot run %s", shell );
79} 79}
80 80