X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/687b055bbe48492b246c33beb56e803ea2f16914..f2888f84e20ae452a6382db6d6f0888b1da41ef5:/apropos.c?ds=inline 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 * Copyright (c) 2011 Ingo Schwarze @@ -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; }