Use STDIN_FILENO rather than '0'
This commit is contained in:
parent
9855548a77
commit
febd744d31
@ -78,7 +78,7 @@ int tee_main(int argc, char **argv)
|
|||||||
*p = NULL; /* Store the sentinal value. */
|
*p = NULL; /* Store the sentinal value. */
|
||||||
|
|
||||||
#ifdef CONFIG_FEATURE_TEE_USE_BLOCK_IO
|
#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++) {
|
for (p=files ; *p ; p++) {
|
||||||
fwrite(buf, 1, c, *p);
|
fwrite(buf, 1, c, *p);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user