summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
-rw-r--r--src/pam.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3fd0630..569f964 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,5 +70,5 @@ pub extern "C" fn pam_sm_close_session(
_argc: c_int,
_argv: *const *const c_char,
) -> c_int {
- pam::SUCCESS
+ pam::IGNORE
}
diff --git a/src/pam.rs b/src/pam.rs
index 17e4590..81d543e 100644
--- a/src/pam.rs
+++ b/src/pam.rs
@@ -9,6 +9,7 @@ pub struct PAMHandle {
pub const SUCCESS: c_int = 0;
pub const SESSION_ERR: c_int = 14;
+pub const IGNORE: c_int = 25;
extern "C" {
fn pam_get_user(