[BusyBox-cvs] busybox/coreutils tee.c,1.25,1.26
Erik Andersen,,,
andersen at busybox.net
Wed May 26 10:26:13 UTC 2004
Update of /var/cvs/busybox/coreutils
In directory nail:/tmp/cvs-serv25622/coreutils
Modified Files:
tee.c
Log Message:
Use STDIN_FILENO rather than '0'
Index: tee.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/tee.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- a/tee.c 26 May 2004 09:54:36 -0000 1.25
+++ b/tee.c 26 May 2004 10:26:10 -0000 1.26
@@ -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);
}
More information about the busybox-cvs
mailing list