Fix a really dumb bug (missing curly braces around the body of an if

statement) that caused pam_sm_chauthtok() to always fail silently.
This commit is contained in:
des 2002-04-26 01:47:48 +00:00
parent dd646660ba
commit 522debf4fd

View File

@ -352,9 +352,10 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags,
pam_error(pamh, "Mismatch; try again, EOF to quit.");
}
PAM_LOG("Got new password");
if (retval != PAM_SUCCESS)
if (retval != PAM_SUCCESS) {
PAM_VERBOSE_ERROR("Unable to get new password");
return (retval);
return (retval);
}
pwd->pw_change = 0;
lc = login_getclass(NULL);