mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
bb_full_fd_action was incorrectly returning an error message causing
major breaking.
This commit is contained in:
parent
a9d8f9c7bf
commit
181f0773e2
1 changed files with 2 additions and 2 deletions
|
|
@ -50,8 +50,8 @@ static size_t bb_full_fd_action(int src_fd, int dst_fd, const size_t size)
|
|||
}
|
||||
|
||||
read_actual = safe_read(src_fd, buffer, read_try);
|
||||
if ((read_actual > 0) && (dst_fd >= 0)) {
|
||||
if (bb_full_write(dst_fd, buffer, (size_t) read_actual) != read_actual) {
|
||||
if (read_actual > 0) {
|
||||
if ((dst_fd >= 0) && (bb_full_write(dst_fd, buffer, (size_t) read_actual) != read_actual)) {
|
||||
bb_perror_msg(bb_msg_write_error); /* match Read error below */
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue