diff options
author | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-19 09:13:01 +0000 |
commit | e901c15d890dbbdce4c086963cb1513653fc46b5 (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/run_shell.c | |
parent | 40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff) | |
download | busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2 busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip |
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/run_shell.c')
-rw-r--r-- | libbb/run_shell.c | 6 |
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 | ||