Allow short reads as we are looping anyway.
This commit is contained in:
parent
5780adb586
commit
02fcd2d2df
@ -31,7 +31,8 @@ extern void archive_copy_file(const archive_handle_t *archive_handle, const int
|
|||||||
} else {
|
} else {
|
||||||
size = chunksize;
|
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) {
|
if (write(dst_fd, buffer, size) != size) {
|
||||||
error_msg_and_die ("Short write");
|
error_msg_and_die ("Short write");
|
||||||
|
Loading…
Reference in New Issue
Block a user