aboutsummaryrefslogtreecommitdiff
path: root/libbb/run_shell.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-15 08:29:22 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-15 08:29:22 +0000
commitb16674f3c1a961e0b5d6a57745f5f749d95c641e (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /libbb/run_shell.c
parente7135df4a650f9197b633784472f45602524855b (diff)
downloadbusybox-w32-b16674f3c1a961e0b5d6a57745f5f749d95c641e.tar.gz
busybox-w32-b16674f3c1a961e0b5d6a57745f5f749d95c641e.tar.bz2
busybox-w32-b16674f3c1a961e0b5d6a57745f5f749d95c641e.zip
Remove trailing whitespace. Update copyright to include 2004.
git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/run_shell.c')
-rw-r--r--libbb/run_shell.c8
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
54 const char **args; 54 const char **args;
55 int argno = 1; 55 int argno = 1;
56 int additional_args_cnt = 0; 56 int additional_args_cnt = 0;
57 57
58 for ( args = additional_args; args && *args; args++ ) 58 for ( args = additional_args; args && *args; args++ )
59 additional_args_cnt++; 59 additional_args_cnt++;
60 60
61 args = (const char **) xmalloc (sizeof (char *) * ( 4 + additional_args_cnt )); 61 args = (const char **) xmalloc (sizeof (char *) * ( 4 + additional_args_cnt ));
62 62
63 args [0] = bb_get_last_path_component ( bb_xstrdup ( shell )); 63 args [0] = bb_get_last_path_component ( bb_xstrdup ( shell ));
64 64
65 if ( loginshell ) { 65 if ( loginshell ) {
66 char *args0; 66 char *args0;
67 bb_xasprintf ( &args0, "-%s", args [0] ); 67 bb_xasprintf ( &args0, "-%s", args [0] );
68 args [0] = args0; 68 args [0] = args0;
69 } 69 }
70 70
71 if ( command ) { 71 if ( command ) {
72 args [argno++] = "-c"; 72 args [argno++] = "-c";
73 args [argno++] = command; 73 args [argno++] = command;