=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mandocdb.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/mandoc/mandocdb.c 2011/11/28 00:57:28 1.14 +++ src/usr.bin/mandoc/mandocdb.c 2011/11/29 22:30:56 1.15 @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.14 2011/11/28 00:57:28 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.15 2011/11/29 22:30:56 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -375,6 +375,12 @@ index_prune(of, db, fbuf, idx, ibuf, &maxrec, &recs, &recsz); + /* + * Go to the root of the respective manual tree + * such that .so links work. In case of failure, + * just prod on, even though .so links won't work. + */ + if (OP_UPDATE == op) { chdir(dir); index_merge(of, mp, &dbuf, &buf, hash, @@ -448,6 +454,12 @@ continue; of = of->first; + + /* + * Go to the root of the respective manual tree + * such that .so links work. In case of failure, + * just prod on, even though .so links won't work. + */ chdir(dirs.paths[i]); index_merge(of, mp, &dbuf, &buf, hash, db, fbuf,