pipes.rs: fix typo

This commit is contained in:
oech3
2026-06-01 20:47:51 +09:00
committed by Daniel Hofstetter
parent 10ef28ddc1
commit 047051093d
+1 -1
View File
@@ -124,7 +124,7 @@ pub fn splice_unbounded_auto(source: &impl AsFd, dest: &mut impl AsFd) -> PipeRe
// pre-generate page caches for splice
let is_file_in = rustix::fs::fadvise(source, 0, None, rustix::fs::Advice::Sequential).is_ok();
if (is_file_in && !is_pipe_out) || splice_unbounded(source, dest).is_err() {
// input or output is not pipe
// both of in/output are not pipe
return splice_unbounded_broker(source, dest);
}
Ok(Ok(()))