[svn-upgrade] Integrating new upstream version, shadow (4.0.5)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "rcsid.h"
|
||||
RCSID ("$Id: pwdcheck.c,v 1.2 2003/04/22 10:59:22 kloczek Exp $")
|
||||
RCSID ("$Id: pwdcheck.c,v 1.3 2004/06/02 23:50:10 kloczek Exp $")
|
||||
#include "prototypes.h"
|
||||
#include "defines.h"
|
||||
#include <pwd.h>
|
||||
@@ -32,9 +32,9 @@ passwd_check (const char *user, const char *passwd, const char *progname)
|
||||
goto bailout;
|
||||
|
||||
retcode = pam_acct_mgmt (pamh, 0);
|
||||
if (retcode == PAM_NEW_AUTHTOK_REQD) {
|
||||
if (retcode == PAM_NEW_AUTHTOK_REQD)
|
||||
retcode = pam_chauthtok (pamh, PAM_CHANGE_EXPIRED_AUTHTOK);
|
||||
} else if (retcode)
|
||||
else if (retcode)
|
||||
goto bailout;
|
||||
|
||||
if (pam_setcred (pamh, 0))
|
||||
|
Reference in New Issue
Block a user