diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2007-12-08 07:52:40 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2007-12-08 07:52:40 +0000 |
| commit | 2d0c4f2e9cf93cb603537a8dff9591ee2df727d8 (patch) | |
| tree | 1be0356268e158527a602c25235c664f1ea73535 /lib/libarchive | |
| parent | 282efc867a6654f4ed802a13b62c394d43509a05 (diff) | |
Notes
Diffstat (limited to 'lib/libarchive')
| -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. */ |
