Mercurial > crates > nonstick
changeset 156:66e662cde087
fix return type of get_authtok for weird PAMs
| author | Paul Fisher <paul@pfish.zone> | 
|---|---|
| date | Tue, 08 Jul 2025 01:04:30 -0400 | 
| parents | ab8020566cd9 | 
| children | 0099f2f79f86 | 
| files | src/libpam/handle.rs | 
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] | 
line wrap: on
 line diff
--- a/src/libpam/handle.rs Tue Jul 08 00:49:38 2025 -0400 +++ b/src/libpam/handle.rs Tue Jul 08 01:04:30 2025 -0400 @@ -499,7 +499,7 @@ } #[cfg(not(any(pam_impl = "LinuxPam", pam_impl = "OpenPam")))] - fn get_authtok(&mut self, prompt: Option<&str>, item_type: ItemType) -> Result<String> { + fn get_authtok(&mut self, prompt: Option<&OsStr>, item_type: ItemType) -> Result<OsString> { Err(ErrorCode::ConversationError) }
