maint: tee: use STDIN_FILENO rather than 0

* src/tee.c (tee_files): Use the name rather than the value.
Addresses https://bugs.gnu.org/35041
This commit is contained in:
Martin Castillo authored and Pádraig Brady committed 2019-03-30 15:04:42 -07:00
1 parent 59e01d13e6
commit ba36d5118f
1 file changed
+1 -1
+1 -1
View File
@@ -228,7 +228,7 @@ tee_files (int nfiles, char **files)
while (n_outputs)
{
bytes_read = read (0, buffer, sizeof buffer);
bytes_read = read (STDIN_FILENO, buffer, sizeof buffer);
if (bytes_read < 0 && errno == EINTR)
continue;
if (bytes_read <= 0)