From bb11ddc4a917d149225cb2b5f4c38f580d318b42 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Sat, 28 Nov 2026 07:12:25 +0900 Subject: [PATCH] uucore: fix build --- src/uucore/src/lib/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uucore/src/lib/lib.rs b/src/uucore/src/lib/lib.rs index 0495dbc692c..eef16247710 100644 --- a/src/uucore/src/lib/lib.rs +++ b/src/uucore/src/lib/lib.rs @@ -445,7 +445,7 @@ pub fn stdout_writer() -> Box { impl std::io::Write for ClosedStdout { fn write(&mut self, _buf: &[u8]) -> std::io::Result { - Err(Errno::EBADF.into()) + Err(std::io::Error::from_raw_os_error(libc::EBADF)) } // With no output, a closed stdout is not an error.