tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* chdir() in mandocdb
@ 2011-12-07 11:11 Kristaps Dzonsons
  2011-12-08  1:34 ` Ingo Schwarze
  0 siblings, 1 reply; 5+ messages in thread
From: Kristaps Dzonsons @ 2011-12-07 11:11 UTC (permalink / raw)
  To: tech

Hi,

I notice that the chdir() for mandocdb()'s OP_NEW is into the base 
directory of the manuals (e.g., /usr/share/man).  However, when I run 
mandocdb over OpenBSD 5.0, I see a few inconsistencies:

  /usr/X11R6/man/man3/XTranslateCoordinates.3
  /usr/X11R6/man/man3/XUngrabDevice.3
  /usr/X11R6/man/man3/Xaw.3
  ...

All of these have an `so' in the current directory.  Looking at roff(7) 
for `so', this is the correct behaviour.  However, this means that the 
chdir() should be for each file, not the current directory (of course, 
to avoid overhead we'll keep a buffer of the current chdir() and avoid 
calling chdir() for the same directory over and over again).

Thoughts?

Kristaps

P.S., note that man.cgi is mature enough that, if catman(8) is run, 
man.cgi can be dropped into /cgi-bin and works properly.  It also works 
fine in non-jailed cgi directories, like my ~/public_html.  It's not 
pretty [yet], but it's quite functional.  I'll switch over to it 
exclusively for manuals and flush out bugs that way for a while.
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-10 16:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-07 11:11 chdir() in mandocdb Kristaps Dzonsons
2011-12-08  1:34 ` Ingo Schwarze
2011-12-08  8:07   ` Kristaps Dzonsons
2011-12-10 14:11     ` Ingo Schwarze
2011-12-10 16:08       ` Kristaps Dzonsons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).