Test for read error while reading the --exclude-from file

Fixes #171
This commit is contained in:
Yorhel 2021-03-04 16:07:46 +01:00
parent a216bc2d35
commit 9337cdc99e

View file

@ -68,8 +68,9 @@ int exclude_addfile(char *file) {
exclude_add(buf);
}
len = ferror(f);
fclose(f);
return 0;
return len;
}