man dumps core if no manpath.config directories exist

2002-10-12 Thread Kris Kennaway
#0 0x0804c7fb in get_manpath (perrs=0, path=0x800 Address 0x800 out of bounds) at /usr/src/gnu/usr.bin/man/manpath/manpath.c:500 #1 0x0804bf30 in manpath (perrs=0) at /usr/src/gnu/usr.bin/man/manpath/manpath.c:195 #2 0x08049a2b in man_getopt (argc=0, argv=0x0) at

[PATCH] Re: man dumps core if no manpath.config directories exist

2002-10-12 Thread Terry Lambert
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,

Re: [PATCH] Re: man dumps core if no manpath.config directories exist

2002-10-12 Thread Kris Kennaway
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