>From d2e9ee6067e5b829f6fac46e8b5489b1d36cfac1 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 17 May 2014 17:51:15 +0200 Subject: [PATCH 2/5] PAM: macro PAM_DATA_REPLACE isn't available in openpam. This part was introduced in commit dba7903ba7fc04bc331004b0453938c116be3663 "PAM: close socket fd with pam_set_data" --- src/sss_client/pam_sss.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c index ddf4ded7cc509408dc022c8384e87176cf005e23..4dae7e1cab5a50e919177b9da1901be594609794 100644 --- a/src/sss_client/pam_sss.c +++ b/src/sss_client/pam_sss.c @@ -121,10 +121,12 @@ static void free_exp_data(pam_handle_t *pamh, void *ptr, int err) static void close_fd(pam_handle_t *pamh, void *ptr, int err) { +#ifdef PAM_DATA_REPLACE if (err & PAM_DATA_REPLACE) { /* Nothing to do */ return; } +#endif /* PAM_DATA_REPLACE */ D(("Closing the fd")); sss_pam_close_fd(); -- 1.9.0