diff options
Diffstat (limited to 'login-utils/chfn.c')
-rw-r--r-- | login-utils/chfn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/chfn.c b/login-utils/chfn.c index 643a16319..834dedfd4 100644 --- a/login-utils/chfn.c +++ b/login-utils/chfn.c @@ -184,9 +184,9 @@ int main (int argc, char **argv) { exit(1); } 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) { + if (retcode) { puts(_("Password error.")); exit(1); } |