diff -Naur a/Cargo.toml b/Cargo.toml --- a/Cargo.toml 2026-09-07 12:26:54.841799723 +0100 +++ b/Cargo.toml 2026-09-07 12:33:53.468365364 +0100 @@ -377,7 +377,7 @@ clap_mangen = "0.3" compare = "0.1.0" crossterm = { version = "0.29.0", default-features = false } -ctor = "0.6.0" +ctor = "1" ctrlc = { version = "3.4.7", features = ["termination"] } dns-lookup = { version = "3.0.0" } exacl = "0.12.0" diff -Naur a/src/uu/stdbuf/src/libstdbuf/src/libstdbuf.rs b/src/uu/stdbuf/src/libstdbuf/src/libstdbuf.rs --- a/src/uu/stdbuf/src/libstdbuf/src/libstdbuf.rs 2026-03-08 12:06:05.000000000 +0000 +++ b/src/uu/stdbuf/src/libstdbuf/src/libstdbuf.rs 2026-09-07 12:33:53.469568688 +0100 @@ -10,7 +10,7 @@ use std::ptr; // This runs automatically when the library is loaded via LD_PRELOAD -#[ctor] +#[ctor(unsafe)] fn init() { unsafe { __stdbuf() }; } diff -Naur a/tests/tests.rs b/tests/tests.rs --- a/tests/tests.rs 2026-03-08 12:06:05.000000000 +0000 +++ b/tests/tests.rs 2026-09-07 12:33:53.470249399 +0100 @@ -8,7 +8,7 @@ pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils"); // Use the ctor attribute to run this function before any tests -#[ctor::ctor] +#[ctor::ctor(unsafe)] fn init() { unsafe { // Necessary for uutests to be able to find the binary diff -Naur a/tests/test_util_name.rs b/tests/test_util_name.rs --- a/tests/test_util_name.rs 2026-03-08 12:06:05.000000000 +0000 +++ b/tests/test_util_name.rs 2026-09-07 12:33:53.470035116 +0100 @@ -16,7 +16,7 @@ // Set the environment variable for any tests // Use the ctor attribute to run this function before any tests -#[ctor::ctor] +#[ctor::ctor(unsafe)] fn init() { // No need for unsafe here unsafe { diff -Naur a/tests/test_uudoc.rs b/tests/test_uudoc.rs --- a/tests/test_uudoc.rs 2026-03-08 12:06:05.000000000 +0000 +++ b/tests/test_uudoc.rs 2026-09-07 12:33:53.469829262 +0100 @@ -23,7 +23,7 @@ // Set the environment variable for any tests // Use the ctor attribute to run this function before any tests -#[ctor::ctor] +#[ctor::ctor(unsafe)] fn init() { // No need for unsafe here unsafe { diff -Naur a/tests/uutests/src/lib/util.rs b/tests/uutests/src/lib/util.rs --- a/tests/uutests/src/lib/util.rs 2026-03-08 12:06:05.000000000 +0000 +++ b/tests/uutests/src/lib/util.rs 2026-09-07 12:33:53.470659195 +0100 @@ -3196,7 +3196,7 @@ // Create a init for the test with a fake value (not needed) #[cfg(test)] - #[ctor::ctor] + #[ctor::ctor(unsafe)] fn init() { unsafe { env::set_var("UUTESTS_BINARY_PATH", "");