zero size. If we don't know the size, we have to proceed as if it is
non-zero.
This manifests as empty bodies when extracting Zip archives
using length-at-end semantics from a pipe using bsdcpio.
SVN-Revision: 4047
fprintf(stderr, "%s: %s\n",
archive_entry_pathname(entry),
archive_error_string(ext));
- } else if (archive_entry_size(entry) > 0) {
+ } else if (!archive_entry_size_is_set(entry)
+ || archive_entry_size(entry) > 0) {
r = extract_data(a, ext);
if (r != ARCHIVE_OK)
cpio->return_value = 1;