freebsd-src/lib/libc
Bill Paul 97cb50947e Submitted by: Bill Fenner <fenner@parc.xerox.com>
Fix for PR #510. The original problem was that __ivaliduser() was
failing to grant access to a machine listed in a +@netgroup specified
in /etc/hosts.equiv, even though the host being checked was most
certainly in the +@netgroup.

The /etc/hosts.equiv file in question looked like this:

localhost
+@netgroup

The reason for the failure was had to do with gethostbyaddr(). Inside
the __ivaliduser() routine, we need to do a gethostbyaddr() in order
to get back the actual name of the host we're trying to validate since
we're only passed its IP address. The hostname returned by gethostbyaddr()
is later passed as an argument to innetgr(). The problem is that
__icheckhost() later does a gethostbyname() of its own, which clobbers
the buffer returned by gethostbyaddr().

The fix is just to copy the hostname into a private buffer and use
_that_ as the 'host' argument that gets passed to innetgr().

And here I was crawling all over the innetgr() code thinking the
problem was there. *sigh*
1995-08-14 23:52:49 +00:00
..
amd64 First round of changes to clean up the RCSID mess in libc: 1995-01-23 01:30:24 +00:00
compat-43 Remove setre*id*. 1995-04-25 10:00:04 +00:00
db Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
gen Fix _listmatch() so that it doesn't fall off the end of the list string. 1995-08-08 02:51:16 +00:00
gmon Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
i386 Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
locale Forget to close file 1995-08-11 08:44:31 +00:00
net Submitted by: Bill Fenner <fenner@parc.xerox.com> 1995-08-14 23:52:49 +00:00
nls Add /usr/local/share/nls to default search path 1995-06-17 03:02:21 +00:00
quad Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
regex Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rpc Reviewed by: David Greenman 1995-08-02 09:14:23 +00:00
stdio Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
stdlib Make strtod conforms manpage, use isspace to skip initial whitespaces 1995-08-01 22:20:16 +00:00
stdtime Fix manpage to reflect current sources 1995-08-07 23:36:08 +00:00
string Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
sys Move rtprio.2 from usr.sbin/rtprio to lib/libc/sys, overwriting the bogus 1995-08-05 07:31:19 +00:00
xdr Confirmed to work by: rcarter@geli.com (Russell Carter) 1995-07-22 23:32:13 +00:00
yp The ypprot_err() function incorrectly maps YP_NODOM to YPERR_NODOM. 1995-07-05 06:04:20 +00:00
Makefile Bump shlib minor because xdr_* functions have been enabled. Do NOT 1995-08-09 06:50:52 +00:00