Date: Sat, 21 Dec 1996 18:44:39 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-current@FreeBSD.org (FreeBSD-current users) Subject: Re: group(5) limits Message-ID: <199612211744.SAA11294@uriah.heep.sax.de> In-Reply-To: <Mutt.19961221143650.davidn@sdev.blaze.net.au> from David Nugent at "Dec 21, 96 02:36:50 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
As David Nugent wrote: > Try running your code with /etc/malloc.conf -> AJ and using getgrent(). > I fixed a similar bug in getttyent() a week ago. With these malloc > options, getttynam() always returned junk, and without the usual > side-effects when someone allocated/reused the freed block would > appear. I should note that the getttyent() bug has been introduced by me on a similar occasion, when replacing the static line buffer for ttys(5) by a dynamically allocated one. (I.e., it's not a genuine 4.4BSD bug.) > I'd suggest just leaving these three lines out. This turned out to be the best sollution for ttyname() as well. Both files, ttys(5) and group(5) tend to change only slowly, so it's a win in the end to reuse the buffer. > BTW, is this a 2.2 candidate? Hardly. It's not even committed to the HEAD yet, and as you've just proven, still might experience bugs. The problem with this kind of fixes is that they are naturally rather bug fixes than feature enhancements, but for any release cycle, you gotta draw the line somewhere. The BETA is due on sunday, so this submission will likely miss the deadline for this time. Don't panic, the next release will come for sure, and it's certainly a candidate for 2.2-stable later. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612211744.SAA11294>