Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-05-26 14:26:10 +0400
committerEric Andersen <andersen@codepoet.org>2004-05-26 14:26:10 +0400
commitfebd744d314f5c05f0a7c88444a1d310f9daf318 (patch)
tree60791afa21a263169d7bec2e91cbf9f14881b5ac /coreutils/tee.c
parent9855548a77af4a5da971bed0632d21a141b84616 (diff)
Use STDIN_FILENO rather than '0'
Diffstat (limited to 'coreutils/tee.c')
-rw-r--r--coreutils/tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c
index 25c108725..6ec1d6dff 100644
--- 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);
}