diff options
Diffstat (limited to 'libbb/run_shell.c')
-rw-r--r-- | libbb/run_shell.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/run_shell.c b/libbb/run_shell.c index 4855d76..993b4e7 100644 --- a/libbb/run_shell.c +++ b/libbb/run_shell.c @@ -54,20 +54,20 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c const char **args; int argno = 1; int additional_args_cnt = 0; - + for ( args = additional_args; args && *args; args++ ) additional_args_cnt++; args = (const char **) xmalloc (sizeof (char *) * ( 4 + additional_args_cnt )); - + args [0] = bb_get_last_path_component ( bb_xstrdup ( shell )); - + if ( loginshell ) { char *args0; bb_xasprintf ( &args0, "-%s", args [0] ); args [0] = args0; } - + if ( command ) { args [argno++] = "-c"; args [argno++] = command; |