Import Debian patch 487_passwd_chauthtok_failed_message

* libmisc/pam_pass.c: Be more verbose and indicate that the
	password was not changed when pam_chauthtok fails (in addition to
	the PAM error, which may not be comprehensible for the users).
This commit is contained in:
nekral-guest 2008-05-18 15:06:51 +00:00
parent fb4271bdf9
commit 3fed00196c
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
Import Debian patch 487_passwd_chauthtok_failed_message
* libmisc/pam_pass.c: Be more verbose and indicate that the
password was not changed when pam_chauthtok fails (in addition to
the PAM error, which may not be comprehensible for the users).
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
Import Debian patch 434_login_stop_checking_args_after--

View File

@ -70,6 +70,7 @@ void do_pam_passwd (const char *user, int silent, int change_expired)
ret = pam_chauthtok (pamh, flags);
if (ret != PAM_SUCCESS) {
fprintf (stderr, _("passwd: %s\n"), pam_strerror (pamh, ret));
fprintf (stderr, _("passwd: password unchanged\n"));
pam_end (pamh, ret);
exit (10); /* XXX */
}