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 #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Martin Castillo <castilma <at> uni-bremen.de>
To: bug-coreutils <at> gnu.org
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




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.