Allow short reads as we are looping anyway.

This commit is contained in:
Glenn L McGrath 2002-11-15 21:58:30 +00:00
parent 5780adb586
commit 02fcd2d2df

View 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");