diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2012-03-24 02:18:51 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2012-03-24 02:18:51 +0000 |
commit | 11144626d03f2c5c2880276685e9592dafdc8494 (patch) | |
tree | bf8b1e76990f44654fa1b7e2541baf5670f63c4a | |
parent | 687b055bbe48492b246c33beb56e803ea2f16914 (diff) | |
download | mandoc-11144626d03f2c5c2880276685e9592dafdc8494.tar.gz mandoc-11144626d03f2c5c2880276685e9592dafdc8494.tar.zst mandoc-11144626d03f2c5c2880276685e9592dafdc8494.zip |
Forgot chdir(2) into volume path.VERSION_1_12_1
-rw-r--r-- | apropos.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |