(main): When fclose (stdin) fails, do not mention
authorJim Meyering <jim@meyering.net>
Sat, 3 Mar 2001 19:19:06 +0000 (19:19 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 3 Mar 2001 19:19:06 +0000 (19:19 +0000)
the output file in the error message; mention "-" instead.

src/sort.c

index 46744348fa85a3f7f56ae2bd7842b2c6ab3bf1f6..aef8db29af7c0b3e205fffd89ad4443d8fc2fbec 100644 (file)
@@ -2515,7 +2515,7 @@ but lacks following character offset"));
     error (SORT_FAILURE, errno, _("%s: write error"), outfile);
 
   if (have_read_stdin && fclose (stdin) == EOF)
-    error (SORT_FAILURE, errno, "%s", outfile);
+    error (SORT_FAILURE, errno, "-");
 
   exit (EXIT_SUCCESS);
 }