diff options
author | Jim Meyering <jim@meyering.net> | 1998-05-07 15:50:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-05-07 15:50:54 +0000 |
commit | cd7f8d6e9bde6709051c71d862cca5cdd0abc137 (patch) | |
tree | eae15221203dda3950479b837cec7d64e8ee2424 /src | |
parent | bf598c02ba03e5f438c3cce321338694529126e5 (diff) | |
download | coreutils-cd7f8d6e9bde6709051c71d862cca5cdd0abc137.tar.xz |
(tac_stdin): Use STDIN_FILENO rather than literal `0' in fstat call.
Diffstat (limited to 'src')
-rw-r--r-- | src/tac.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -431,7 +431,7 @@ tac_stdin (void) Use fstat instead of checking for errno == ESPIPE because lseek doesn't work on some special files but doesn't return an error, either. */ - if (fstat (0, &stats)) + if (fstat (STDIN_FILENO, &stats)) { error (0, errno, _("standard input")); return 1; |