mirror of
https://github.com/sheumann/hush.git
synced 2024-10-29 20:27:40 +00:00
Bug fix from Kim B. Heino, manifested via:
echo > foo && zip foo.zip foo && ./busybox unzip foo.zip
This commit is contained in:
parent
7bfa88f315
commit
90632d021c
@ -44,6 +44,7 @@ static ssize_t bb_full_fd_action(int src_fd, int dst_fd, size_t size)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
total += wrote;
|
total += wrote;
|
||||||
|
if (total == size) status = 0;
|
||||||
} else if (xread < 0) {
|
} else if (xread < 0) {
|
||||||
bb_perror_msg(bb_msg_read_error);
|
bb_perror_msg(bb_msg_read_error);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user