Date: Mon, 12 Aug 2002 17:40:04 -0700 (PDT) From: Brad Johnson <bjohnson@got.wedgie.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/41482: pkg_info core-dumps for old style +CONTENTS file Message-ID: <200208130040.g7D0e4pH049382@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/41482; it has been noted by GNATS. From: Brad Johnson <bjohnson@got.wedgie.org> To: freebsd-gnats-submit@FreeBSD.org Cc: iwaki@bc.niigata-u.ac.jp Subject: Re: bin/41482: pkg_info core-dumps for old style +CONTENTS file Date: Mon, 12 Aug 2002 20:35:24 -0400 (EDT) Hm... silly me... In my "fix" of this problem by setting p->origin to NULL in lib/plist.c, I fixed the seg fault, but I also broke the -o functionality of pkg_info!! The initialization of origin should happen at the beginning of the read_plist function, not add_plist as I originally suggested. I made the fix on mine and pkg_info started working the way it was supposed to without core dumps. So on line 263 of lib/plist.c, I added: pkg->origin = NULL; Sorry for not picking that up earlier; it was my first time looking at the code. - Brad Johnson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208130040.g7D0e4pH049382>