Added patch removing invalid ypdb_close call

This commit is contained in:
Karel Klíč 2010-01-27 13:19:48 +00:00
parent c3b633e85f
commit b4af5587be
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -up ypserv-2.19/ypserv/server.c.nodbclose ypserv-2.19/ypserv/server.c
--- ypserv-2.19/ypserv/server.c.nodbclose 2010-01-26 15:40:51.000000000 +0100
+++ ypserv-2.19/ypserv/server.c 2010-01-26 18:19:33.478791025 +0100
@@ -590,7 +590,6 @@ ypproc_xfr_2_svc (ypreq_xfr *argp, ypres
log_msg ("refuse to transfer %s from %s, no trusted master",
argp->map_parms.map, inet_ntoa (rqhost->sin_addr));
- ypdb_close (dbp);
result->xfrstat = YPXFR_NODOM;
return TRUE;
}

View File

@ -4,7 +4,7 @@ Summary: The NIS (Network Information Service) server
Url: http://www.linux-nis.org/nis/ypserv/index.html
Name: ypserv
Version: 2.21
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2
Group: System Environment/Daemons
Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
@ -33,6 +33,8 @@ Patch7: ypserv-2.19-slp-warning.patch
# called by all daemons.
# Not sent to upstream.
Patch8: ypserv-2.21-pidfile.patch
# Accepted by upstream on 2010-01-27.
Patch9: ypserv-2.19-nodbclose.patch
Obsoletes: yppasswd
BuildRequires: gdbm-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -64,6 +66,7 @@ machines.
%patch6 -p1 -b .nonedomain
%patch7 -p1 -b .slp-warning
%patch8 -p1 -b .pidfile
%patch9 -p1 -b .nodbclose
%build
cp etc/README etc/README.etc
@ -149,6 +152,9 @@ exit 0
%{_includedir}/*/*
%changelog
* Wed Jan 27 2010 Karel Klic <kklic@redhat.com> - 2.21-3
- Added patch removing invalid ypdb_close call (#403621, #430902)
* Thu Jan 21 2010 Karel Klic <kklic@redhat.com> - 2.21-2
- Added patch for rpc.ypxfrd to create a pid file
- Rewrote initscripts to become closer to Packaging:SysVInitScript