From owner-freebsd-current Sat Oct 12 18: 9: 9 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 480F537B401 for ; Sat, 12 Oct 2002 18:09:08 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-165-226-88.dsl.lsan03.pacbell.net [64.165.226.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id B21BC43EB1 for ; Sat, 12 Oct 2002 18:09:07 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id ECC3966B5E; Sat, 12 Oct 2002 18:09:03 -0700 (PDT) Date: Sat, 12 Oct 2002 18:09:03 -0700 From: Kris Kennaway To: Terry Lambert Cc: Kris Kennaway , 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> References: <20021012225115.GA96279@xor.obsecurity.org> <3DA8C643.7F7235B1@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <3DA8C643.7F7235B1@mindspring.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3D0, so malloc(0) "succeeds" and does > > nothing, leaving manpathlist a null pointer. > >=20 > > 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. >=20 > Uh... so fix it? That's why I reported it. > Patch attached. Thanks. Kris --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9qMeuWry0BWjoQKURAgvnAJ9vxTmRpHKUR/fRLnFqwP3n6NeCLQCghBrw tVRDAK1ScTom9lNBnuI+FzY= =puB1 -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message