Subject: bin/4101: path buffer in "man" much too small
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 09/10/1997 01:09:33
>Number: 4101
>Category: bin
>Synopsis: path buffer in "man" much too small
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 9 16:20:01 1997
>Last-Modified:
>Originator: Matthias Scheler
>Organization:
Mario Kemper Maintenance Project
>Release: 970905
>Environment:
System: NetBSD lyssa 1.2G NetBSD 1.2G (LYSSA) #1: Sun Sep 7 15:04:37 MEST 1997 tron@lyssa:/usr/src/sys/arch/i386/compile/LYSSA i386
>Description:
"man" uses a much to small buffer for the filename of manual page so that
manual pages which long names will not be found.
>How-To-Repeat:
Put this line in "/etc/man.conf"...
_default /usr/{share,X11R6,X11,local,local/elm,local/pbm,local/teTeX,local/emul/linux/usr,local/emul/linux/usr/X11R6}/{man,man/old}/
... and try this:
man select
>Fix:
*** src/usr.bin/man/man.c.orig Sat Oct 14 04:17:52 1995
--- src/usr.bin/man/man.c Wed Sep 10 01:01:59 1997
*************** manual(page, tag, pg)
*** 371,377 ****
ENTRY *ep, *e_sufp, *e_tag;
TAG *missp, *sufp;
int anyfound, cnt, found;
! char *p, buf[128];
anyfound = 0;
buf[0] = '*';
--- 371,377 ----
ENTRY *ep, *e_sufp, *e_tag;
TAG *missp, *sufp;
int anyfound, cnt, found;
! char *p, buf[MAXPATHLEN];
anyfound = 0;
buf[0] = '*';
>Audit-Trail:
>Unformatted: