Fixed ypbind-post-waitbind to handle long rpcinfo requests

Resolves: #624688
This commit is contained in:
Honza Horák 2011-11-15 10:41:53 +01:00
parent e1739f9a43
commit 4e0810ffff
2 changed files with 8 additions and 8 deletions

View File

@ -14,18 +14,14 @@
logger -t ypbind $"Binding NIS service"
timeout=10
timeout=$NISTIMEOUT
firsttime=1
SECONDS=0
retval=0
while [ $SECONDS -lt $timeout ]; do
while [ $SECONDS -lt $timeout ] || [ $firsttime -eq 1 ] ; do
if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
then
if [ $firsttime -eq 1 ]; then
# reset timeout
timeout=$NISTIMEOUT
firsttime=0
fi
firsttime=0
/usr/bin/ypwhich > /dev/null 2>&1
retval=$?
if [ $retval -eq 0 ]; then

View File

@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain
Name: ypbind
Version: 1.33
Release: 7%{?dist}
Release: 8%{?dist}
License: GPLv2
Group: System Environment/Daemons
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
@ -117,6 +117,10 @@ fi
%doc README NEWS COPYING
%changelog
* Tue Nov 15 2011 Honza Horak <hhorak@redhat.com> - 3:1.33-8
- Fixed ypbind-post-waitbind to handle long rpcinfo requests
Resolves: #624688
* Mon Sep 26 2011 Honza Horak <hhorak@redhat.com> - 3:1.33-7
- Don't turn off allow_ypbind SELinux boolean
Resolves: #741141