projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Regression testing bugfixes from Larry Doolittle. As an aside,
[oweals/busybox.git]
/
xargs.c
diff --git
a/xargs.c
b/xargs.c
index ddfbe9230dc411363266adc98dea663c177e8248..f05efd917263be560823a27ae217c7e8060950ff 100644
(file)
--- a/
xargs.c
+++ b/
xargs.c
@@
-1,9
+1,9
@@
/*
* Mini xargs implementation for busybox
*
/*
* Mini xargs implementation for busybox
*
- * Copyright (C)
2000
by Lineo, inc.
+ * Copyright (C)
1999,2000,2001
by Lineo, inc.
* Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
* Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
- * Remixed by Mark Whitley <markw@lineo.com>, <markw@
enol.com
>
+ * Remixed by Mark Whitley <markw@lineo.com>, <markw@
codepoet.org
>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-68,8
+68,7
@@
int xargs_main(int argc, char **argv)
char *execstr = NULL;
/* eat the newline off the filename. */
char *execstr = NULL;
/* eat the newline off the filename. */
- if (file_to_act_on[strlen(file_to_act_on)-1] == '\n')
- file_to_act_on[strlen(file_to_act_on)-1] = '\0';
+ chomp(file_to_act_on);
/* eat blank lines */
if (strlen(file_to_act_on) == 0)
/* eat blank lines */
if (strlen(file_to_act_on) == 0)