From: Kristaps Dzonsons <kristaps@bsd.lv>
To: tech@mdocml.bsd.lv
Subject: chdir() in mandocdb
Date: Wed, 07 Dec 2011 12:11:10 +0100 [thread overview]
Message-ID: <4EDF49CE.3040508@bsd.lv> (raw)
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
next reply other threads:[~2011-12-07 11:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-07 11:11 Kristaps Dzonsons [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EDF49CE.3040508@bsd.lv \
--to=kristaps@bsd.lv \
--cc=tech@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).