diff options
Diffstat (limited to 'src/dircolors.c')
-rw-r--r-- | src/dircolors.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dircolors.c b/src/dircolors.c index f95524b67..f43a57db5 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -298,6 +298,11 @@ dc_parse_stream (FILE *fp, char const *filename) { if (getline (&input_line, &input_line_size, fp) <= 0) { + if (ferror (fp)) + { + error (0, errno, _("%s: read error"), quotef (filename)); + ok = false; + } free (input_line); break; } |