summaryrefslogtreecommitdiff
path: root/pam_gdm
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2016-09-06 11:37:08 -0400
committerRay Strode <rstrode@redhat.com>2016-09-06 11:43:53 -0400
commit543b042146a9f398bd9042025aaa4acc7add192e (patch)
tree008957c8858c56be1f0c067172e90e344c580691 /pam_gdm
parente7b6864d27b15a436836a78659d1a922789aae35 (diff)
downloadgdm-543b042146a9f398bd9042025aaa4acc7add192e.tar.gz
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.
Diffstat (limited to 'pam_gdm')
-rw-r--r--pam_gdm/pam_gdm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pam_gdm/pam_gdm.c b/pam_gdm/pam_gdm.c
index f491b8d8..d87c91b7 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;