freebsd-dev/lib
jdp f98a36d07d Fix a bug in __ivaliduser_sa() which caused some rsh/rlogin attempts
to fail needlessly if a reverse DNS lookup of the IP address didn't
come up with a hostname.  As a comment in the code clearly stated,
the "damn hostname" was looked up only for the purpose of netgroup
matching.  But if that lookup failed, the function bailed out
immediately even though in many cases netgroup matching would not
be used.

This change marks the hostname as unknown but continues.  Where
netgroup matching is performed, an unknown hostname is handled
conservatively.  I.e., for "+@netgroup" (accept) entries an unknown
hostname never matches, and for "-@netgroup" (reject) entries an
unknown hostname always matches.

In the lines affected (only), I also fixed a few bogus casts.  There
are others, and in fact this entire file would be a good candidate
for a cleanup sweep.

Reviewed by:	imp (wearing his flourescent yellow Security Team cap)
MFC after:	2 days
2002-08-24 17:37:42 +00:00
..
compat Updated libc/libc_r that fixes the FreeBSD-SA-02:28.resolv resolver bug. 2002-08-04 05:51:05 +00:00
csu Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
libalias Don't forget to recalculate the IP checksum of the original 2002-07-23 00:16:19 +00:00
libatm LP64 fix: don't cast pointer to int 2002-06-30 23:36:21 +00:00
libbind Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libbz2 I somehow managed to forgot to commit this in my INCS sweep. 2002-05-14 11:41:23 +00:00
libc Fix a bug in __ivaliduser_sa() which caused some rsh/rlogin attempts 2002-08-24 17:37:42 +00:00
libc_r Add an ia64 atomic lock primitive for libc_r. This is mostly for 2002-07-20 19:22:10 +00:00
libcalendar mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libcam string cleanup: 2002-05-14 04:32:02 +00:00
libcom_err MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libcompat Assume __STDC__, remove non-__STDC__ code. 2002-05-28 17:03:12 +00:00
libcrypt crypt(3) incorrectly documents md5 salt, fixed. 2002-04-09 22:32:59 +00:00
libdevinfo o Merge <machine/ansi.h> and <machine/types.h> into a new header 2002-08-21 16:20:02 +00:00
libdevstat Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
libdisk Use correct printf format specifier to print unsigned longs. 2002-05-30 21:00:42 +00:00
libedit Restore local bits lost in recent merge from NetBSD. 2002-06-16 08:29:35 +00:00
libfetch Surround prototypes with __BEGIN_DECLS / __END_DECLS. 2002-07-22 16:11:39 +00:00
libform Make this a little easier to build standalone. (same change as libpanel) 2002-05-21 07:08:30 +00:00
libftpio Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach 2002-07-02 11:11:17 +00:00
libio Add __FBSDID()s to libio 2001-09-30 21:41:46 +00:00
libipsec just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD. 2002-04-19 04:46:24 +00:00
libipx Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
libisc Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
libkse Oops, forgot to set the suspended flag for threads that are created 2002-07-09 13:24:52 +00:00
libkvm &x is not a format string 2002-08-24 07:15:55 +00:00
libmd Add missing const's. 2002-06-24 13:52:26 +00:00
libmenu Make this a little easier to build standalone. (same change as libpanel) 2002-05-21 07:08:30 +00:00
libmilter Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
libmp MAN[1-9] -> MAN. 2002-05-13 12:11:54 +00:00
libncp Add missing newline at end of file. 2002-05-30 20:51:53 +00:00
libncurses o Merge <machine/ansi.h> and <machine/types.h> into a new header 2002-08-21 16:20:02 +00:00
libnetgraph Fix bugs in NgSendMsg() and NgSendAsciiMsg() where the wrong token 2001-10-25 04:02:25 +00:00
libopie Updates for OPIE 2.4. 2002-03-22 00:12:20 +00:00
libpam Since pam_get_authtok(3) doesn't know about our options structure, setting 2002-07-30 08:32:03 +00:00
libpanel Initial update of bmake glue for ncurses-5.2-20020518 2002-05-21 05:41:07 +00:00
libpcap Update for libpcap 0.7.1 2002-06-21 01:35:37 +00:00
libpthread Add an ia64 atomic lock primitive for libc_r. This is mostly for 2002-07-20 19:22:10 +00:00
libradius mdoc(7) police: tidy up the formatting. 2002-08-09 12:07:17 +00:00
librpcsvc New cpp(1) doesn't like -I${DESTDIR}/usr/include. 2002-05-14 11:37:10 +00:00
libsbuf Enable WARNS?=2. 2002-01-06 08:47:19 +00:00
libsm Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libsmb Supply SMB_CFG_FILE in CFLAGS. The newly imported smbfs-1.4.2 2001-12-20 16:21:47 +00:00
libsmdb Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libsmutil Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libstand o Merge <machine/ansi.h> and <machine/types.h> into a new header 2002-08-21 16:20:02 +00:00
libtacplus mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libtelnet Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libufs Wrap the header to prevent multiple inclusion, and mark the DECLS section. 2002-08-22 23:35:35 +00:00
libugidfw Use "ugidfw.h" rather than <ugidfw.h> so that mkdep can find it. 2002-08-14 22:30:07 +00:00
libusbhid mdoc(7) police: Tidy up the markup. 2002-05-30 12:16:01 +00:00
libutil Add LOGIN_SETMAC, which will indicate to the user context management code 2002-08-16 02:14:21 +00:00
libvgl Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
libwrap Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
libxpg4
liby Dont fail if the intermediate directories in ${DESTDIR}/usr/lib/compat/* 2001-11-03 06:24:23 +00:00
libypclnt Add ypclnt_havepasswd(), and guard against a possible segfault. 2002-05-08 00:48:39 +00:00
libz Fix an easy warning in a local addition. 2002-08-01 11:29:05 +00:00
msun e_pow.c: 2002-06-17 15:28:59 +00:00
ncurses o Merge <machine/ansi.h> and <machine/types.h> into a new header 2002-08-21 16:20:02 +00:00
Makefile Hook up libugidfw to the build. 2002-08-02 07:09:53 +00:00
Makefile.inc