commit | 54d2eb54d456a3d641f114ec15ff84a9eccb3c03 | [log] [tgz] |
---|---|---|
author | Dieter Baron <dillo@nih.at> | Tue Dec 12 10:26:05 2017 +0100 |
committer | Dieter Baron <dillo@nih.at> | Tue Dec 12 10:26:05 2017 +0100 |
tree | 3a481b0a4e06da438f9c71219aaaf55712be72ee | |
parent | 7100082c67e29374c941c911c307b1e6fc250287 [diff] [blame] |
Only fail zip_source_read if a previous error occured during read. Fixes case where clonefile() fails (e.g. on HFS+).
diff --git a/lib/zip_source_open.c b/lib/zip_source_open.c index a5712b2..e4cb0b3 100644 --- a/lib/zip_source_open.c +++ b/lib/zip_source_open.c
@@ -68,6 +68,7 @@ } src->eof = false; + src->had_read_error = false; _zip_error_clear(&src->error); src->open_count++;