diff options
-rw-r--r-- | src/uniq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uniq.c b/src/uniq.c index ad0c1d6ae..9044bde87 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -459,7 +459,7 @@ check_file (char const *infile, char const *outfile, char delimiter) closefiles: if (ferror (stdin) || fclose (stdin) != 0) - die (EXIT_FAILURE, 0, _("error reading %s"), quoteaf (infile)); + die (EXIT_FAILURE, errno, _("error reading %s"), quoteaf (infile)); /* stdout is handled via the atexit-invoked close_stdout function. */ |