diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2007-12-04 06:32:12 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2007-12-04 06:32:12 +0000 |
| commit | f4c8548d525f0c9e9f0b12f826024663bcdee9cc (patch) | |
| tree | d7dc290b862a811d7e6a384d7c33dd220ec6e0f5 /lib/libarchive/archive_read_support_format_zip.c | |
| parent | 7a314dff5502276290aea10fa0cedd02c02b1ec7 (diff) | |
Notes
Diffstat (limited to 'lib/libarchive/archive_read_support_format_zip.c')
| -rw-r--r-- | lib/libarchive/archive_read_support_format_zip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libarchive/archive_read_support_format_zip.c b/lib/libarchive/archive_read_support_format_zip.c index b07e14e2165a..e9976779f407 100644 --- a/lib/libarchive/archive_read_support_format_zip.c +++ b/lib/libarchive/archive_read_support_format_zip.c @@ -336,7 +336,8 @@ zip_read_file_header(struct archive_read *a, struct archive_entry *entry, zip->entry_offset = 0; /* If there's no body, force read_data() to return EOF immediately. */ - if (zip->entry_bytes_remaining < 1) + if (0 == (zip->flags & ZIP_LENGTH_AT_END) + && zip->entry_bytes_remaining < 1) zip->end_of_entry = 1; /* Set up a more descriptive format name. */ |
