From 11144626d03f2c5c2880276685e9592dafdc8494 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 24 Mar 2012 02:18:51 +0000 Subject: Forgot chdir(2) into volume path. --- apropos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-56-ge451