From owner-cvs-lib Fri Dec 27 10:21:12 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA01938 for cvs-lib-outgoing; Fri, 27 Dec 1996 10:21:12 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA01928; Fri, 27 Dec 1996 10:21:09 -0800 (PST) Date: Fri, 27 Dec 1996 10:21:09 -0800 (PST) From: Bill Paul Message-Id: <199612271821.KAA01928@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/net ether_addr.c gethostbydns.c gethostbynis.c getnetbynis.c getservent.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/12/27 10:21:09 Modified: lib/libc/net ether_addr.c gethostbydns.c gethostbynis.c getnetbynis.c getservent.c Log: Small yet significant tweaks/cleanups: - getservent: o put _yp_check() proto under #ifdef YP where it belongs o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - gethostbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long - getnetbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - ether_addr: o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying (in this case it's BUFSIZ + 2 bytes, but it happens that BUFSIZ == YPMAXRECORD. - gethostbydns: o nuke stray 'return(NULL)' in __dns_getanswer() (harmless but looks silly) These are 2.2 candidates. I will wait a few days to make sure these don't break anything and then, if there are no objections, move them to the 2.2 branch. Revision Changes Path 1.7 +6 -4 src/lib/libc/net/ether_addr.c 1.15 +1 -2 src/lib/libc/net/gethostbydns.c 1.6 +3 -3 src/lib/libc/net/gethostbynis.c 1.8 +4 -3 src/lib/libc/net/getnetbynis.c 1.7 +3 -3 src/lib/libc/net/getservent.c