(main): When fclose (stdin) fails, do not mention

the output file in the error message; mention "-" instead.
This commit is contained in:
Jim Meyering
2001-03-03 19:19:06 +00:00
parent 61829f0638
commit 91b9ff7935
+1 -1
View 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);
}