summaryrefslogtreecommitdiff
path: root/modules/pam_unix/pam_unix_acct.c
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2020-07-22 11:50:23 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2020-07-22 11:50:23 +0200
commite8113766910eb0f512132bfcaec744ad7351c224 (patch)
tree647f1ce7b323f758f4d0daef48d8920ca43fbb41 /modules/pam_unix/pam_unix_acct.c
parentdb6b293046aee4735f3aa2d1713742ed4b533219 (diff)
pam_unix: Add comment for the ignored PAM_AUTHTOK_ERR case
* modules/pam_unix/pam_unix_acct.c (pam_sm_acct_mgmt): Add comment about the reason for ignoring PAM_AUTHTOK_ERR.
Diffstat (limited to 'modules/pam_unix/pam_unix_acct.c')
-rw-r--r--modules/pam_unix/pam_unix_acct.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c
index f46f2308..8f5ed3e0 100644
--- a/modules/pam_unix/pam_unix_acct.c
+++ b/modules/pam_unix/pam_unix_acct.c
@@ -252,6 +252,10 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc, const char **argv)
_("Your account has expired; please contact your system administrator."));
break;
case PAM_AUTHTOK_ERR:
+ /*
+ * We ignore "password changed too early" error
+ * as it is relevant only for password change.
+ */
retval = PAM_SUCCESS;
/* fallthrough */
case PAM_SUCCESS: