summaryrefslogtreecommitdiffstatshomepage
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
commit11144626d03f2c5c2880276685e9592dafdc8494 (patch)
treebf8b1e76990f44654fa1b7e2541baf5670f63c4a
parent687b055bbe48492b246c33beb56e803ea2f16914 (diff)
downloadmandoc-11144626d03f2c5c2880276685e9592dafdc8494.tar.gz
mandoc-11144626d03f2c5c2880276685e9592dafdc8494.tar.zst
mandoc-11144626d03f2c5c2880276685e9592dafdc8494.zip
Forgot chdir(2) into volume path.VERSION_1_12_1
-rw-r--r--apropos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apropos.c b/apropos.c
index 2bb5402e..9c3cae96 100644
--- a/apropos.c
+++ b/apropos.c
@@ -1,4 +1,4 @@
-/* $Id: apropos.c,v 1.29 2012/03/24 02:07:32 kristaps Exp $ */
+/* $Id: apropos.c,v 1.30 2012/03/24 02:18:51 kristaps Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;
}