diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-01 22:45:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-01 22:45:53 +0000 |
commit | 34f785b90475baa4a0b2012afc259927b0484605 (patch) | |
tree | 672023130caf49797bf4f1aefc8daca9e9292329 /mansearch.c | |
parent | 24387bf29bff146c16b4c293b9c384cb99730d62 (diff) | |
download | mandoc-34f785b90475baa4a0b2012afc259927b0484605.tar.gz |
In man(1) mode, change to the right directory before starting the parser,
just like traditional man(1) does, such that .so links have a chance to
work. After this point, we don't need the current directory for anything
else before exit, so we don't need to worry about getting back and we can
safely ignore failure.
Diffstat (limited to 'mansearch.c')
-rw-r--r-- | mansearch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mansearch.c b/mansearch.c index 82518001..4455dc11 100644 --- a/mansearch.c +++ b/mansearch.c @@ -335,6 +335,7 @@ mansearch(const struct mansearch *search, maxres, sizeof(struct manpage)); } mpage = *res + cur; + mpage->ipath = i; mpage->sec = 10; mpage->form = mp->form; buildnames(mpage, db, s, mp->pageid, |