From 41f705b9dec31da18f6867c789122ed7a1ad30a3 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Thu, 15 Oct 2026 14:14:52 +0100 Subject: [PATCH 1/2] fixup! stty: reduce unsafe using rustix --- src/uu/stty/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/stty/Cargo.toml b/src/uu/stty/Cargo.toml index 131f66804e3..ad878721364 100644 --- a/src/uu/stty/Cargo.toml +++ b/src/uu/stty/Cargo.toml @@ -19,7 +19,7 @@ doctest = false clap = { workspace = true } fluent = { workspace = true } nix = { workspace = true, features = ["ioctl", "term"] } -rustix = { workspace = true, features = ["termios"] } +rustix = { workspace = true, features = ["fs", "termios"] } uucore = { workspace = true, features = ["parser"] } [build-dependencies] From 98d0c8ff2f786b39570f254fa5b88ea53acba42d Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Wed, 14 Oct 2026 21:30:19 +0100 Subject: [PATCH 2/2] stty: refine target configuration --- src/uu/stty/Cargo.toml | 2 +- src/uu/stty/src/stty.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/stty/Cargo.toml b/src/uu/stty/Cargo.toml index ad878721364..93d0cca7e52 100644 --- a/src/uu/stty/Cargo.toml +++ b/src/uu/stty/Cargo.toml @@ -15,7 +15,7 @@ readme.workspace = true path = "src/stty.rs" doctest = false -[target.'cfg(unix)'.dependencies] +[target.'cfg(all(unix, not(any(target_os = "aix", target_os = "dragonfly"))))'.dependencies] clap = { workspace = true } fluent = { workspace = true } nix = { workspace = true, features = ["ioctl", "term"] } diff --git a/src/uu/stty/src/stty.rs b/src/uu/stty/src/stty.rs index 009830a1de1..d3bb601bb32 100644 --- a/src/uu/stty/src/stty.rs +++ b/src/uu/stty/src/stty.rs @@ -14,7 +14,7 @@ // spell-checker:ignore notaflag notacombo notabaud // spell-checker:ignore baudrate TCGETS Winsize tcgetwinsize tcsetwinsize -#![cfg(unix)] +#![cfg(all(unix, not(any(target_os = "aix", target_os = "dragonfly"))))] mod flags;