mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-01 21:41:41 -04:00
(main): When fclose (stdin) fails, do not mention
the output file in the error message; mention "-" instead.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user