mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-03-02 02:54:28 +02: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:
@@ -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