Allow short reads as we are looping anyway.
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 15 Nov 2002 21:58:30 +0000 (21:58 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 15 Nov 2002 21:58:30 +0000 (21:58 -0000)
archival/libunarchive/archive_copy_file.c

index 47d1a5216301ebc3e4c61d744316e578fa0ae17d..faa8059ef4d3a4941983aa6a72fdc56a729211d0 100644 (file)
@@ -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");