Mercurial > crates > nonstick
diff src/libpam/conversation.rs @ 100:3f11b8d30f63
Implement environment variable management.
This actually wires up the environment variable handling to libpam,
so that applications and modules can manage the environment through
the authentication process.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 24 Jun 2025 17:08:01 -0400 |
parents | b87100c5eed4 |
children | 94b51fa4f797 |
line wrap: on
line diff
--- a/src/libpam/conversation.rs Tue Jun 24 14:54:47 2025 -0400 +++ b/src/libpam/conversation.rs Tue Jun 24 17:08:01 2025 -0400 @@ -55,7 +55,7 @@ conv.communicate(&borrowed?); // Send our answers back. - let owned = Answers::build(messages).map_err(|_| ErrorCode::ConversationError)?; + let owned = Answers::build(messages)?; *answers_ptr = owned.into_ptr().as_ptr(); Ok(()) };