GNU bug report logs - #35041
tee: use STDIN_FILENO instead of 0

Previous Next

Package: coreutils;

Reported by: Martin Castillo <castilma <at> uni-bremen.de>

Date: Fri, 29 Mar 2019 18:18:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 35041-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Martin Castillo <castilma <at> uni-bremen.de>, 35041-done <at> debbugs.gnu.org
Subject: Re: bug#35041: tee: use STDIN_FILENO instead of 0
Date: Sat, 30 Mar 2019 15:09:51 -0700
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




This bug report was last modified 6 years and 56 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.