* mdocml: Forgot chdir(2) into volume path.
@ 2012-03-24 2:18 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2012-03-24 2:18 UTC (permalink / raw)
To: source
Log Message:
-----------
Forgot chdir(2) into volume path.
Modified Files:
--------------
mdocml:
apropos.c
Revision Data
-------------
Index: apropos.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/apropos.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -Lapropos.c -Lapropos.c -u -p -r1.29 -r1.30
--- apropos.c
+++ 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;
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-24 2:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-24 2:18 mdocml: Forgot chdir(2) into volume path kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).