projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61829f0
)
(main): When fclose (stdin) fails, do not mention
author
Jim Meyering
<jim@meyering.net>
Sat, 3 Mar 2001 19:19:06 +0000
(19:19 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/sort.c
b/src/sort.c
index 46744348fa85a3f7f56ae2bd7842b2c6ab3bf1f6..aef8db29af7c0b3e205fffd89ad4443d8fc2fbec 100644
(file)
--- 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);
}