|
if (ferror(inFile)) { |
|
XSUM_log("Error: a failure occurred reading the input file.\n"); |
|
exit(1); |
XSUM_hashStream exits on ferror with the Error: a failure occurred reading the input file. message.
This prevents processing multiple input files.
In my case, finding FS/device errors was exactly the point of running xxhsum. When processing files in batches and parsing the output, if the process exited prematurely, the whole batch was marked as failed which resulted in great number of false negatives.