]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(tac_stdin): Use STDIN_FILENO rather than literal `0' in fstat call.
authorJim Meyering <jim@meyering.net>
Thu, 7 May 1998 15:50:54 +0000 (15:50 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 7 May 1998 15:50:54 +0000 (15:50 +0000)
src/tac.c

index 416ab64aee26156462d42dc3510ac4bfdf0cc9c9..a4436c83d6f3dfc5aa950630c191c903c8fac528 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
@@ -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;