Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/uucore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ rustix = { workspace = true, optional = true }
[target.'cfg(unix)'.dependencies]
libc = { workspace = true }
nix = { workspace = true, optional = true }
rustix = { workspace = true, features = ["fs"] }
# utmpx is unix-only, so its dependencies must not be pulled into other targets
# (the uptime feature enables utmpx and now builds on windows too).
time = { workspace = true, optional = true, features = [
Expand Down
2 changes: 1 addition & 1 deletion src/uucore/src/lib/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ pub fn stdout_writer() -> Box<dyn std::io::Write> {

impl std::io::Write for ClosedStdout {
fn write(&mut self, _buf: &[u8]) -> std::io::Result<usize> {
Err(Errno::EBADF.into())
Err(rustix::io::Errno::BADF.into())
Comment thread
oech3 marked this conversation as resolved.
Resolved
}

// With no output, a closed stdout is not an error.
Expand Down
Loading