summaryrefslogtreecommitdiffstats
path: root/apropos.c
diff options
context:
space:
mode:
Diffstat (limited to 'apropos.c')
-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;
}