diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/run_init/run_init.c policycoreutils-1.33.4/run_init/run_init.c --- nsapolicycoreutils/run_init/run_init.c 2006-11-16 17:14:27.000000000 -0500 +++ policycoreutils-1.33.4/run_init/run_init.c 2006-11-22 14:11:25.000000000 -0500 @@ -132,6 +132,14 @@ result = 1; /* user authenticated OK! */ } + /* If we were successful, call pam_acct_mgmt() to reset the + * pam_tally failcount. + */ + if (result && (PAM_SUCCESS != pam_acct_mgmt(pam_handle, 0)) ) { + fprintf(stderr, _("failed to get account information\n")); + exit(-1); + } + /* We're done with PAM. Free `pam_handle'. */ pam_end(pam_handle, PAM_SUCCESS);