diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2004-06-27 01:15:31 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2004-06-27 01:15:31 +0000 |
| commit | 1393f9061e8aee889ebf72c431fe69d9535e3581 (patch) | |
| tree | d31c911cb53635ed8be6eeea16ab388e7e4a8941 /lib/libarchive/archive_read_extract.c | |
| parent | 4049589b2840e20348fc288ed4b96f57df439cae (diff) | |
Notes
Diffstat (limited to 'lib/libarchive/archive_read_extract.c')
| -rw-r--r-- | lib/libarchive/archive_read_extract.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libarchive/archive_read_extract.c b/lib/libarchive/archive_read_extract.c index 8bb75a60fcb2..1245d4ce6129 100644 --- a/lib/libarchive/archive_read_extract.c +++ b/lib/libarchive/archive_read_extract.c @@ -319,7 +319,6 @@ archive_read_extract_regular(struct archive *a, struct archive_entry *entry, int flags) { int fd, r; - ssize_t s; r = ARCHIVE_OK; fd = archive_read_extract_regular_open(a, @@ -328,12 +327,7 @@ archive_read_extract_regular(struct archive *a, struct archive_entry *entry, archive_set_error(a, errno, "Can't open"); return (ARCHIVE_WARN); } - s = archive_read_data_into_fd(a, fd); - if (s < archive_entry_size(entry)) { - /* Didn't read enough data? Complain but keep going. */ - archive_set_error(a, EIO, "Archive data truncated"); - r = ARCHIVE_WARN; - } + r = archive_read_data_into_fd(a, fd); set_ownership(a, entry, flags); set_time(a, entry, flags); /* Always restore permissions for regular files. */ |
