Date: Sat, 12 Oct 2002 18:09:03 -0700 From: Kris Kennaway <kris@obsecurity.org> To: Terry Lambert <tlambert2@mindspring.com> Cc: Kris Kennaway <kris@obsecurity.org>, jwe@che.utexas.edu, current@FreeBSD.org Subject: Re: [PATCH] Re: man dumps core if no manpath.config directories exist Message-ID: <20021013010903.GA98767@xor.obsecurity.org> In-Reply-To: <3DA8C643.7F7235B1@mindspring.com> References: <20021012225115.GA96279@xor.obsecurity.org> <3DA8C643.7F7235B1@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sat, Oct 12, 2002 at 06:02:59PM -0700, Terry Lambert wrote: > Kris Kennaway wrote: > > It's pretty clear what's going on..none of the directories in > > /etc/manpath.config exist, so len=0, so malloc(0) "succeeds" and does > > nothing, leaving manpathlist a null pointer. > > > > This situation can occur if e.g. you install the 'base' freebsd > > distribution into a jail, without installing any of the manpages. In > > this situation none of the manpage directories are created either. > > Uh... so fix it? That's why I reported it. > Patch attached. Thanks. Kris [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9qMeuWry0BWjoQKURAgvnAJ9vxTmRpHKUR/fRLnFqwP3n6NeCLQCghBrw tVRDAK1ScTom9lNBnuI+FzY= =puB1 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021013010903.GA98767>
