summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-03-03 19:19:06 +0000
committerJim Meyering <jim@meyering.net>2001-03-03 19:19:06 +0000
commit91b9ff7935127fedc3bbf6cbca2803998b70451c (patch)
tree35d3988f8855b22d30d5981624290c47d73b2266 /src
parent61829f063872c02fcd87b2fdb93c4aede836ea8a (diff)
downloadcoreutils-91b9ff7935127fedc3bbf6cbca2803998b70451c.tar.gz
coreutils-91b9ff7935127fedc3bbf6cbca2803998b70451c.zip
(main): When fclose (stdin) fails, do not mention
the output file in the error message; mention "-" instead.
Diffstat (limited to 'src')
-rw-r--r--src/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index 46744348f..aef8db29a 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -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);
}