--- Begin Message ---
Subject: |
tee: use STDIN_FILENO instead of 0 |
Date: |
Fri, 29 Mar 2019 19:16:41 +0100 |
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
--
GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC
--- End Message ---
--- Begin Message ---
Subject: |
Re: 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
--- End Message ---