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:
parent
fb4271bdf9
commit
3fed00196c
@ -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>
|
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
Import Debian patch 434_login_stop_checking_args_after--
|
Import Debian patch 434_login_stop_checking_args_after--
|
||||||
|
@ -70,6 +70,7 @@ void do_pam_passwd (const char *user, int silent, int change_expired)
|
|||||||
ret = pam_chauthtok (pamh, flags);
|
ret = pam_chauthtok (pamh, flags);
|
||||||
if (ret != PAM_SUCCESS) {
|
if (ret != PAM_SUCCESS) {
|
||||||
fprintf (stderr, _("passwd: %s\n"), pam_strerror (pamh, ret));
|
fprintf (stderr, _("passwd: %s\n"), pam_strerror (pamh, ret));
|
||||||
|
fprintf (stderr, _("passwd: password unchanged\n"));
|
||||||
pam_end (pamh, ret);
|
pam_end (pamh, ret);
|
||||||
exit (10); /* XXX */
|
exit (10); /* XXX */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user