From 34f785b90475baa4a0b2012afc259927b0484605 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 1 Sep 2014 22:45:53 +0000 Subject: 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. --- mansearch.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mansearch.c') 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, -- cgit