Mercurial > crates > nonstick
diff src/libpam/handle.rs @ 118:39760dfc9b3b
Detect PAM library based only on system lib; rename minimal lib to XSso.
Also formats and assorted other cleanup.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 29 Jun 2025 20:13:03 -0400 |
parents | a12706e42c9d |
children |
line wrap: on
line diff
--- a/src/libpam/handle.rs Sun Jun 29 18:48:14 2025 -0400 +++ b/src/libpam/handle.rs Sun Jun 29 20:13:03 2025 -0400 @@ -8,8 +8,8 @@ use crate::libpam::{memory, pam_ffi}; use crate::logging::{Level, Location}; use crate::{ - Conversation, EnvironMap, Flags, PamHandleApplication, PamHandleModule, guide, linklist, - stdlinks, + guide, linklist, stdlinks, Conversation, EnvironMap, Flags, PamHandleApplication, + PamHandleModule, }; use num_enum::{IntoPrimitive, TryFromPrimitive}; use std::cell::Cell; @@ -208,7 +208,12 @@ let func = CString::new(loc.function).unwrap_or(CString::default()); // SAFETY: We're calling this function with a known value. unsafe { - pam_ffi::_openpam_log(level as c_int, func.as_ptr(), "%s\0".as_ptr().cast(), entry.as_ptr()) + pam_ffi::_openpam_log( + level as c_int, + func.as_ptr(), + "%s\0".as_ptr().cast(), + entry.as_ptr(), + ) } } }