From: nekral-guest Date: Sun, 18 May 2008 15:06:51 +0000 (+0000) Subject: Import Debian patch 487_passwd_chauthtok_failed_message X-Git-Tag: 4.1.2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fed00196c0c0fa3d28287fec321ca220e1e7c00;p=shadow 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). --- diff --git a/ChangeLog b/ChangeLog index 8d7d79c5..1be5a8e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-18 Nicolas François + + 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 Import Debian patch 434_login_stop_checking_args_after-- diff --git a/libmisc/pam_pass.c b/libmisc/pam_pass.c index 1c1cc214..ea0f3a9e 100644 --- a/libmisc/pam_pass.c +++ b/libmisc/pam_pass.c @@ -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 */ }