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