freebsd-dev/lib
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
..
csu/i386 Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libc Submitted by: Bill Fenner <fenner@parc.xerox.com> 1995-08-14 23:52:49 +00:00
libcom_err Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libcompat Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcrypt Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcurses Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libdisk Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
libedit Fix sh coredump in vi mode with empty colon command 1995-08-04 19:42:23 +00:00
libf2c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libF77 Library for f2c (part 2 of 2) 1994-10-26 18:17:41 +00:00
libforms Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libftp Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libI77 Library for f2c. (part 1 of 2) 1994-10-26 18:15:35 +00:00
libkvm 41 headers must be implicitly included and one more (<sys/param.h>) must 1995-06-25 03:35:49 +00:00
libm Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libmd Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libmytinfo Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libncurses Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libpam/modules Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
libpcap Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libresolv BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
librpc Make up for the fact that rpc headers are now installed from include. 1994-08-05 01:59:40 +00:00
librpcsvc If we are going to set the OBJS target, don't add to the old target. This 1995-03-04 17:39:24 +00:00
libscsi Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libskey Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libss Install non-source files with the optional flag ${COPY}, not with the flag -c. 1995-08-06 12:41:07 +00:00
libtelnet Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libterm Correct the man page extent. 1994-08-08 19:26:23 +00:00
libtermcap Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libutil Small NIS tweak: frob pw_error() a little so that it can say either 1995-08-13 16:05:06 +00:00
liby BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
msun Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
ncurses/ncurses Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
rpcsvc Makefile to build librpcsvc. (All sources automatically generated.) 1994-08-07 23:21:08 +00:00
Makefile Only build libtelnet if the secure libtelnet is not going to be built. 1995-08-06 11:14:09 +00:00
Makefile.inc From 1.1.5: define default shared library versions. For 2.0, use version 1994-08-04 22:44:00 +00:00