# HG changeset patch # User Paul Fisher # Date 1753915181 14400 # Node ID 346dc13724cec4828f28dc2d118d533a59b378a5 # Parent a8c814843ccb6e58fab4c3be2dd4d371dfeaac32 Check for Sun-specific password change behavior. diff -r a8c814843ccb -r 346dc13724ce testharness/src/lib.rs --- a/testharness/src/lib.rs Wed Jul 30 18:32:03 2025 -0400 +++ b/testharness/src/lib.rs Wed Jul 30 18:39:41 2025 -0400 @@ -92,7 +92,12 @@ ) -> nonstick::Result<()> { match action { AuthtokAction::Validate => { - if handle.old_authtok(None)?.as_bytes() != b"old token!" { + let expected: &[u8] = if cfg!(pam_impl = "Sun") { + b"valid" + } else { + b"old token!" + }; + if handle.old_authtok(None)?.as_bytes() != expected { return Err(ErrorCode::AuthenticationError); } Ok(())