consider all 127.0.0.0/8 as localhost addresses

Related: #829487
This commit is contained in:
Honza Horák 2012-07-10 10:56:02 +02:00
parent a9bcc738bd
commit f244b4182f
2 changed files with 6 additions and 2 deletions

View File

@ -29,7 +29,7 @@ diff -up ypbind-mt-1.35/src/serv_list.c.nmlocal ypbind-mt-1.35/src/serv_list.c
+ {
+ if (domainlist[i].server[s].host == NULL)
+ break;
+ if (strcmp(inet_ntoa(domainlist[i].server[s].addr), "127.0.0.1") == 0)
+ if (strncmp(inet_ntoa(domainlist[i].server[s].addr), "127", 3) == 0)
+ {
+ localhost_used = 1;
+ return;

View File

@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain
Name: ypbind
Version: 1.35
Release: 4%{?dist}
Release: 5%{?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 Jul 10 2012 Honza Horak <hhorak@redhat.com> - 3:1.35-5
- consider all 127.0.0.0/8 as localhost addresses
Related: #829487
* Mon Jul 09 2012 Honza Horak <hhorak@redhat.com> - 3:1.35-4
- don't go offline when one of NIS servers is localhost
Related: #829487