Date: Mon, 08 Jul 2002 01:39:52 -0700 From: Mike Makonnen <makonnen@pacbell.net> To: David Malone <dwmalone@maths.tcd.ie> Cc: freebsd-current@FreeBSD.ORG, alfred@FreeBSD.ORG Subject: Re: benign bug in src/sys/kern/kern_resource.c:limcopy() ? Message-ID: <20020708013952.105b9bfc.makonnen@pacbell.net> In-Reply-To: <20020708072042.GA49370@walton.maths.tcd.ie> References: <20020707152851.3ddc58dc.makonnen@pacbell.net> <20020708072042.GA49370@walton.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 08 Jul 2002 08:20:42 +0100 David Malone <dwmalone@maths.tcd.ie> wrote: > > bcopy(&(lim->pl_rlimit[0]), &(copy->pl_rlimit[0]), > sizeof(lim->pl_rlimit)); > > rather than just copying the first limit? It might be better to just > bcopy the whole struct plimit and make a note that other fields need > to be reset. > yeah, you're right. I replaced one benign bug with a worse one. Alfred emailed me about it earlier, but I wasn't paying attention. Sorry :( Cheers, Mike Makonnen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020708013952.105b9bfc.makonnen>