commit | febd744d314f5c05f0a7c88444a1d310f9daf318 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Wed May 26 10:26:10 2004 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Wed May 26 10:26:10 2004 +0000 |
tree | 60791afa21a263169d7bec2e91cbf9f14881b5ac | |
parent | 9855548a77af4a5da971bed0632d21a141b84616 [diff] |
Use STDIN_FILENO rather than '0'
diff --git a/coreutils/tee.c b/coreutils/tee.c index 25c1087..6ec1d6d 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c
@@ -78,7 +78,7 @@ *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); }