Skip to content

Commit 607d72d

Browse files
committed
pipes.rs: add missing count on fallback
1 parent 4f9a39b commit 607d72d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/uucore/src/lib/features/pipes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ pub fn send_n_bytes(input: impl AsFd, target: impl AsFd, n: u64) -> std::io::Res
215215
let mut drain = Vec::with_capacity(s);
216216
broker_r.take(s as u64).read_to_end(&mut drain)?;
217217
RawWriter(&target).write_all(&drain)?;
218+
bytes_written += s as u64;
218219
break true;
219220
}
220221
}

0 commit comments

Comments
 (0)