summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-15 21:58:30 +0000
committerGlenn L McGrath2002-11-15 21:58:30 +0000
commit02fcd2d2df00ec2e79f1cc30c7a7badb60548671 (patch)
tree9b04bae34a15f04492ebb7cbe82e3235b3ad8e9e
parent5780adb586042f02b10546f17d3cf1bb72d1e9d5 (diff)
downloadbusybox-02fcd2d2df00ec2e79f1cc30c7a7badb60548671.zip
busybox-02fcd2d2df00ec2e79f1cc30c7a7badb60548671.tar.gz
Allow short reads as we are looping anyway.
-rw-r--r--archival/libunarchive/archive_copy_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/libunarchive/archive_copy_file.c b/archival/libunarchive/archive_copy_file.c
index 47d1a52..faa8059 100644
--- a/archival/libunarchive/archive_copy_file.c
+++ b/archival/libunarchive/archive_copy_file.c
@@ -31,7 +31,8 @@ extern void archive_copy_file(const archive_handle_t *archive_handle, const int
} else {
size = chunksize;
}
- archive_xread_all(archive_handle, buffer, size);
+// archive_xread_all(archive_handle, buffer, size);
+ size = archive_xread(archive_handle, buffer, size);
if (write(dst_fd, buffer, size) != size) {
error_msg_and_die ("Short write");