drop superfluous 'Changing password' message from pam_unix (#658289)
This commit is contained in:
parent
d6023f89c8
commit
629a67bec4
16
pam-1.3.0-unix-nomsg.patch
Normal file
16
pam-1.3.0-unix-nomsg.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff -up Linux-PAM-1.3.0/modules/pam_unix/pam_unix_passwd.c.nomsg Linux-PAM-1.3.0/modules/pam_unix/pam_unix_passwd.c
|
||||||
|
--- Linux-PAM-1.3.0/modules/pam_unix/pam_unix_passwd.c.nomsg 2016-04-11 13:08:47.000000000 +0200
|
||||||
|
+++ Linux-PAM-1.3.0/modules/pam_unix/pam_unix_passwd.c 2017-04-20 16:51:24.853106709 +0200
|
||||||
|
@@ -687,12 +687,6 @@ pam_sm_chauthtok(pam_handle_t *pamh, int
|
||||||
|
return PAM_SUCCESS;
|
||||||
|
} else if (off(UNIX__IAMROOT, ctrl) ||
|
||||||
|
(on(UNIX_NIS, ctrl) && _unix_comesfromsource(pamh, user, 0, 1))) {
|
||||||
|
- /* instruct user what is happening */
|
||||||
|
- if (off(UNIX__QUIET, ctrl)) {
|
||||||
|
- retval = pam_info(pamh, _("Changing password for %s."), user);
|
||||||
|
- if (retval != PAM_SUCCESS)
|
||||||
|
- return retval;
|
||||||
|
- }
|
||||||
|
retval = pam_get_authtok(pamh, PAM_OLDAUTHTOK, &pass_old, NULL);
|
||||||
|
|
||||||
|
if (retval != PAM_SUCCESS) {
|
7
pam.spec
7
pam.spec
@ -3,7 +3,7 @@
|
|||||||
Summary: An extensible library which provides authentication for applications
|
Summary: An extensible library which provides authentication for applications
|
||||||
Name: pam
|
Name: pam
|
||||||
Version: 1.3.0
|
Version: 1.3.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
# The library is BSD licensed with option to relicense as GPLv2+
|
# The library is BSD licensed with option to relicense as GPLv2+
|
||||||
# - this option is redundant as the BSD license allows that anyway.
|
# - this option is redundant as the BSD license allows that anyway.
|
||||||
# pam_timestamp, pam_loginuid, and pam_console modules are GPLv2+.
|
# pam_timestamp, pam_loginuid, and pam_console modules are GPLv2+.
|
||||||
@ -42,6 +42,7 @@ Patch28: pam-1.1.1-console-errmsg.patch
|
|||||||
Patch29: pam-1.3.0-pwhistory-helper.patch
|
Patch29: pam-1.3.0-pwhistory-helper.patch
|
||||||
Patch31: pam-1.1.8-audit-user-mgmt.patch
|
Patch31: pam-1.1.8-audit-user-mgmt.patch
|
||||||
Patch32: pam-1.2.1-console-devname.patch
|
Patch32: pam-1.2.1-console-devname.patch
|
||||||
|
Patch33: pam-1.3.0-unix-nomsg.patch
|
||||||
|
|
||||||
%define _pamlibdir %{_libdir}
|
%define _pamlibdir %{_libdir}
|
||||||
%define _moduledir %{_libdir}/security
|
%define _moduledir %{_libdir}/security
|
||||||
@ -120,6 +121,7 @@ cp %{SOURCE18} .
|
|||||||
%patch29 -p1 -b .pwhhelper
|
%patch29 -p1 -b .pwhhelper
|
||||||
%patch31 -p1 -b .audit-user-mgmt
|
%patch31 -p1 -b .audit-user-mgmt
|
||||||
%patch32 -p1 -b .devname
|
%patch32 -p1 -b .devname
|
||||||
|
%patch33 -p1 -b .nomsg
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -369,6 +371,9 @@ fi
|
|||||||
%doc doc/adg/*.txt doc/adg/html
|
%doc doc/adg/*.txt doc/adg/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 20 2017 Tomáš Mráz <tmraz@redhat.com> 1.3.0-3
|
||||||
|
- drop superfluous 'Changing password' message from pam_unix (#658289)
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user