[gdm] pam_gdm: Don't return PAM_AUTHINFO_UNAVAIL on success



commit 543b042146a9f398bd9042025aaa4acc7add192e
Author: Ray Strode <rstrode redhat com>
Date:   Tue Sep 6 11:37:08 2016 -0400

    pam_gdm: Don't return PAM_AUTHINFO_UNAVAIL on success
    
    commit bb12416da1f6 tries to make pam_gdm return AUTHINFO_UNAVAIL
    if keyutils isn't around, but it inadvertently makes pam_gdm
    return AUTHINFO_UNAVAIL when the password is available!
    
    This commit fixes that.

 pam_gdm/pam_gdm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pam_gdm/pam_gdm.c b/pam_gdm/pam_gdm.c
index f491b8d..d87c91b 100644
--- a/pam_gdm/pam_gdm.c
+++ b/pam_gdm/pam_gdm.c
@@ -56,6 +56,8 @@ pam_sm_authenticate (pam_handle_t  *pamh,
 
         if (r < 0)
                 return PAM_AUTH_ERR;
+        else
+                return PAM_SUCCESS;
 #endif
 
         return PAM_AUTHINFO_UNAVAIL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]