Date: Fri, 27 Dec 1996 11:28:50 -0800 (PST) From: Bill Paul <wpaul> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/gen getpwent.c getgrent.c getnetgrent.c Message-ID: <199612271928.LAA04314@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 96/12/27 11:28:49 Modified: lib/libc/gen getpwent.c getgrent.c getnetgrent.c Log: Small yet significant tweaks/cleanups: - getpwent: o adjunctbuf should be NUL terminated after copying o _pw_breakout_yp() needs to know the length of the buffer returned from YP so it can properly NUL terminate its local buffer. - getgrent: o YP buffers should be YPMAXRECORD + 2 bytes long and NUL terminated. (Previously they were hardcoded to 1024 bytes.) - getnetgrent: o YP data should be copied with snprintf(), not sprintf() 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.37 +7 -5 src/lib/libc/gen/getpwent.c 1.15 +5 -3 src/lib/libc/gen/getgrent.c 1.19 +2 -2 src/lib/libc/gen/getnetgrent.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612271928.LAA04314>