diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 11:29:22 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 11:29:22 +0300 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /libbb/run_shell.c | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) |
Remove trailing whitespace. Update copyright to include 2004.
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 4855d763e..993b4e711 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; |