From: Jim Meyering Date: Sat, 3 Mar 2001 19:19:06 +0000 (+0000) Subject: (main): When fclose (stdin) fails, do not mention X-Git-Tag: TEXTUTILS-2_0_12~13 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=91b9ff7935127fedc3bbf6cbca2803998b70451c;p=thirdparty%2Fcoreutils.git (main): When fclose (stdin) fails, do not mention the output file in the error message; mention "-" instead. --- diff --git a/src/sort.c b/src/sort.c index 46744348fa..aef8db29af 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); }