projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9855548
)
Use STDIN_FILENO rather than '0'
author
Eric Andersen
<andersen@codepoet.org>
Wed, 26 May 2004 10:26:10 +0000
(10:26 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Wed, 26 May 2004 10:26:10 +0000
(10:26 -0000)
coreutils/tee.c
patch
|
blob
|
history
diff --git
a/coreutils/tee.c
b/coreutils/tee.c
index 25c108725c885f41c6bbfd64808bd987b011a8da..6ec1d6dff7ee1c1c3b8de0bf342d2df780be484a 100644
(file)
--- a/
coreutils/tee.c
+++ b/
coreutils/tee.c
@@
-78,7
+78,7
@@
int tee_main(int argc, char **argv)
*p = NULL; /* Store the sentinal value. */
#ifdef CONFIG_FEATURE_TEE_USE_BLOCK_IO
- while ((c = read(
0
, buf, BUFSIZ)) != 0) {
+ while ((c = read(
STDIN_FILENO
, buf, BUFSIZ)) != 0) {
for (p=files ; *p ; p++) {
fwrite(buf, 1, c, *p);
}