fix (#1671452), add patch
This commit is contained in:
parent
8cbc5e0761
commit
8c3df02286
19
yp-tools-4.2.3-yppasswd.patch
Normal file
19
yp-tools-4.2.3-yppasswd.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
author Filip Januš (fjanus@redhat.com)
|
||||||
|
date 29. 10. 2019
|
||||||
|
|
||||||
|
|
||||||
|
diff -ur yp-tools-4.2.3/src/yppasswd.c yp-tools-master/src/yppasswd.c
|
||||||
|
--- yp-tools-4.2.3/src/yppasswd.c 2018-03-27 15:47:48.000000000 +0200
|
||||||
|
+++ yp-tools-master/src/yppasswd.c 2019-10-29 12:00:29.000000000 +0100
|
||||||
|
@@ -281,6 +281,11 @@
|
||||||
|
CLIENT *clnt;
|
||||||
|
|
||||||
|
clnt = clnt_create (master, YPPROG, YPVERS, "udp");
|
||||||
|
+
|
||||||
|
+ /* clnt_create can return NULL in some cases */
|
||||||
|
+ if (clnt == NULL)
|
||||||
|
+ return NULL;
|
||||||
|
+
|
||||||
|
clnt->cl_auth = authunix_create_default ();
|
||||||
|
|
||||||
|
if (name == NULL)
|
@ -1,13 +1,14 @@
|
|||||||
Summary: NIS (or YP) client programs
|
Summary: NIS (or YP) client programs
|
||||||
Name: yp-tools
|
Name: yp-tools
|
||||||
Version: 4.2.3
|
Version: 4.2.3
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Source: https://github.com/thkukuk/yp-tools/archive/v%{version}.tar.gz
|
Source: https://github.com/thkukuk/yp-tools/archive/v%{version}.tar.gz
|
||||||
Patch1: yp-tools-2.12-hash.patch
|
Patch1: yp-tools-2.12-hash.patch
|
||||||
Patch2: yp-tools-2.12-crypt.patch
|
Patch2: yp-tools-2.12-crypt.patch
|
||||||
Patch3: yp-tools-2.12-adjunct.patch
|
Patch3: yp-tools-2.12-adjunct.patch
|
||||||
Patch4: yp-tools-4.2.2-strict-prototypes.patch
|
Patch4: yp-tools-4.2.2-strict-prototypes.patch
|
||||||
|
Patch5: yp-tools-4.2.3-yppasswd.patch
|
||||||
Url: http://www.linux-nis.org/nis/yp-tools/index.html
|
Url: http://www.linux-nis.org/nis/yp-tools/index.html
|
||||||
BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel, libnsl2-devel
|
BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel, libnsl2-devel
|
||||||
Requires: ypbind >= 3:2.4-2
|
Requires: ypbind >= 3:2.4-2
|
||||||
@ -49,6 +50,7 @@ Install yp-tools-devel package for developing applications that use yp-tools
|
|||||||
%patch2 -p1 -b .crypt
|
%patch2 -p1 -b .crypt
|
||||||
%patch3 -p1 -b .adjunct
|
%patch3 -p1 -b .adjunct
|
||||||
%patch4 -p1 -b .strict-prototypes
|
%patch4 -p1 -b .strict-prototypes
|
||||||
|
%patch5 -p1
|
||||||
|
|
||||||
|
|
||||||
autoreconf -i -f -v
|
autoreconf -i -f -v
|
||||||
@ -77,6 +79,11 @@ make DESTDIR="$RPM_BUILD_ROOT" INSTALL_PROGRAM=install install
|
|||||||
/var/yp/nicknames
|
/var/yp/nicknames
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 29 2019 Filip Januš <fjanus@redhat.com> - 4.2.3-6
|
||||||
|
- Add yppasswd patch
|
||||||
|
- Bug https://bugzilla.redhat.com/show_bug.cgi?id=1671452
|
||||||
|
- Pull request https://github.com/thkukuk/yp-tools/pull/7
|
||||||
|
|
||||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-5
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user