summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2011-12-20 20:02:07 +0000
committerMartin Matuska <mm@FreeBSD.org>2011-12-20 20:02:07 +0000
commitf873e4d1bddf9d9f99b799121dc72c745a974a1c (patch)
tree2547c5f59a69b3a06af052ec70fcfb2aafc88b44
parente3bf726bee5e69ecca58806cafda03e08fd71ab0 (diff)
Notes
-rw-r--r--lib/libarchive/archive_read_extract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_read_extract.c b/lib/libarchive/archive_read_extract.c
index 8ae5dec0f347..5c69f5998f58 100644
--- a/lib/libarchive/archive_read_extract.c
+++ b/lib/libarchive/archive_read_extract.c
@@ -108,7 +108,7 @@ archive_read_extract2(struct archive *_a, struct archive_entry *entry,
if (r != ARCHIVE_OK)
/* If _write_header failed, copy the error. */
archive_copy_error(&a->archive, ad);
- else if (archive_entry_size(entry) > 0)
+ else if (!archive_entry_size_is_set(entry) || archive_entry_size(entry) > 0)
/* Otherwise, pour data into the entry. */
r = copy_data(_a, ad);
r2 = archive_write_finish_entry(ad);