From: Eric Andersen Date: Wed, 26 May 2004 10:26:10 +0000 (-0000) Subject: Use STDIN_FILENO rather than '0' X-Git-Tag: 1_00_rc1~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=febd744d314f5c05f0a7c88444a1d310f9daf318;p=oweals%2Fbusybox.git Use STDIN_FILENO rather than '0' --- 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); }