bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35041: tee: use STDIN_FILENO instead of 0


From: Pádraig Brady
Subject: bug#35041: tee: use STDIN_FILENO instead of 0
Date: Sat, 30 Mar 2019 15:09:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 29/03/19 11:16, Martin Castillo wrote:
> I was reading through tee.c and saw
> 231:      bytes_read = read (0, buffer, sizeof buffer);
> 
> Maybe it should read
> read(STDIN_FILENO, buffer, sizeof buffer);
> ?
> 
> Greetings,
> Martin Castillo

Pushed:
https://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=ba36d51

marking this as done.

thanks,
Pádraig





reply via email to

[Prev in Thread] Current Thread [Next in Thread]