From 23b22d3dfa59baaf2d8d9f49f573d6890f062836 Mon Sep 17 00:00:00 2001 From: eureka-cpu Date: Sat, 2 May 2026 13:12:33 -0700 Subject: [PATCH] fix: `cast` `pw_shell` for dynamically linked libc --- test/test_ns.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_ns.rs b/test/test_ns.rs index dfa2164..ca11d83 100644 --- a/test/test_ns.rs +++ b/test/test_ns.rs @@ -37,7 +37,7 @@ fn env_shell() -> &'static str { let uid = libc::getuid(); let pw = libc::getpwuid(uid); assert!(!pw.is_null()); - ffi::CStr::from_ptr((*pw).pw_shell) + ffi::CStr::from_ptr((*pw).pw_shell.cast()) .to_string_lossy() .into_owned() })