diff options
author | Yorhel <git@yorhel.nl> | 2021-03-04 16:07:46 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-03-04 16:07:48 +0100 |
commit | 9337cdc99e8c205e6e75de25de29a5be53ea858c (patch) | |
tree | c49d38434c3c1b58a7d24bf2bbcd86df3d4ce526 | |
parent | a216bc2d35b6edf4dadf55350f09d7cbf229fbf7 (diff) |
Test for read error while reading the --exclude-from file
Fixes #171
-rw-r--r-- | src/exclude.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exclude.c b/src/exclude.c index c9fb7f5..572335f 100644 --- a/src/exclude.c +++ b/src/exclude.c @@ -68,8 +68,9 @@ int exclude_addfile(char *file) { exclude_add(buf); } + len = ferror(f); fclose(f); - return 0; + return len; } |