Subject: xsrc/11501: xman uses incompatible filenames for preformated manpages.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <petri.koistinen@iki.fi>
List: netbsd-bugs
Date: 11/15/2000 08:34:14
>Number: 11501
>Category: xsrc
>Synopsis: xman uses incompatible filenames for preformated manpages.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: xsrc-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Nov 15 08:34:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Petri Koistinen
>Release: 1.5_BETA
>Organization:
>Environment:
NetBSD kissakala 1.5_BETA NetBSD 1.5_BETA (MYKERNEL) #0: Sat Nov 11 02:23:45 GMT 2000 thoron@kissakala:/usr/src/sys/arch/amiga/compile/MYKERNEL amiga
>Description:
I guess everybody has used man and xman programs. Have you ever saved
preformated manpage from xman? It will save preformated page with filename with extension .X where X is number (or letter?) of manpage section. This is nice because next time xman tries to get same manpage it will use preformated manpage and it will load faster.
But there is a problem, man excepts that preformated manpages end with .0 filename extension. If there is manpages in catX directories with non .0 extentions man tries to reformat them again and will result in mess. And on the other hand xman doesn't see preformated man pages in catX directories with .0 extentions and will reformat those pages always from orginal source.
>How-To-Repeat:
- Remove some preformated manpages from /usr/share/man/cat1 for exsample.
- Start xman with user who has priviledge to write in /usr/share/man/cat1.
- Open manpage in section 1 which doesn't anymore more have preformated version in cat1 dirctory.
- xman ask if you want save preformat manpages, answer yes.
- use man to look same manpage and you might notice it will reformat already formated page again and there may appear newlines in wrong places.
>Fix:
I guess xman have to modified so that it saves preformated man pages
with .0 extension and will read those files as preformated text too.
>Release-Note:
>Audit-Trail:
>Unformatted: