=================================================================== RCS file: /cvs/mandoc/Attic/apropos.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -p -r1.29 -r1.30 --- mandoc/Attic/apropos.c 2012/03/24 02:07:32 1.29 +++ mandoc/Attic/apropos.c 2012/03/24 02:18:51 1.30 @@ -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; }