aboutsummaryrefslogtreecommitdiff
path: root/libbb/run_shell.c
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-26 14:07:50 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-26 14:07:50 +0000
commit76f4ab68a56e14747c25e6da830cf73b38bbe1cd (patch)
treed2e94dac0f1f5da5cb3ecb927b78c4c2a02f4ea6 /libbb/run_shell.c
parent37e0338781ea28f57bed354fe745effb020d16fc (diff)
downloadbusybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.tar.gz
busybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.tar.bz2
busybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.zip
Vodz, last_patch_86
git-svn-id: svn://busybox.net/trunk/busybox@6853 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/run_shell.c')
-rw-r--r--libbb/run_shell.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libbb/run_shell.c b/libbb/run_shell.c
index d154b9852..49e8a76c2 100644
--- a/libbb/run_shell.c
+++ b/libbb/run_shell.c
@@ -52,10 +52,7 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c
52 for ( args = additional_args; args && *args; args++ ) 52 for ( args = additional_args; args && *args; args++ )
53 additional_args_cnt++; 53 additional_args_cnt++;
54 54
55 if ( additional_args )
56 args = (const char **) xmalloc (sizeof (char *) * ( 4 + additional_args_cnt )); 55 args = (const char **) xmalloc (sizeof (char *) * ( 4 + additional_args_cnt ));
57 else
58 args = (const char **) xmalloc (sizeof (char *) * 4 );
59 56
60 args [0] = bb_get_last_path_component ( bb_xstrdup ( shell )); 57 args [0] = bb_get_last_path_component ( bb_xstrdup ( shell ));
61 58
@@ -77,4 +74,3 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c
77 execv ( shell, (char **) args ); 74 execv ( shell, (char **) args );
78 bb_perror_msg_and_die ( "cannot run %s", shell ); 75 bb_perror_msg_and_die ( "cannot run %s", shell );
79} 76}
80