mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
uniq: be more specific when diagnosing read errors
* src/uniq.c (check_file): Use the errno when diagnosing read errors.
This commit is contained in:
1 parent
b16553cdad
commit
4eb5abbff4
1 file changed
+1
-1
+1
-1
@@ -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. */
|
||||
|
||||
|
||||
Reference in new issue
Block a user