summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-03-24 02:18:51 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-03-24 02:18:51 +0000
commitd66e91d61c8aa0c9b9bb234a683fcda0a15be65b (patch)
treed26b11bf567b5bae8132299760272dba7e27690f
parent08612e9c1eb58e01548c90223334d1eac1beb993 (diff)
downloadmandoc-d66e91d61c8aa0c9b9bb234a683fcda0a15be65b.tar.gz
Forgot chdir(2) into volume path.VERSION.1.12.1
-rw-r--r--apropos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apropos.c b/apropos.c
index 392bb381..2f1f90b1 100644
--- a/apropos.c
+++ b/apropos.c
@@ -143,6 +143,7 @@ main(int argc, char *argv[])
}
if (--terms < ressz && res[terms].matched) {
+ chdir(paths.paths[res[terms].volume]);
strlcpy(path, res[terms].file, PATH_MAX);
usecat = RESTYPE_CAT == res[terms].type;
}