mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(main): When fclose (stdin) fails, do not mention
the output file in the error message; mention "-" instead.
This commit is contained in:
1 parent
61829f0638
commit
91b9ff7935
1 file changed
+1
-1
+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