summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-10-18 21:10:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-10-18 21:10:07 +0000
commit9f8b78f8343545a5a6de607a1d55ec6397ce8c6c (patch)
treec069e25537c0065f83144a39cd254274158c91db
parenta24894c279cda3d965668a3548d070489a8aceed (diff)
downloadmandoc-9f8b78f8343545a5a6de607a1d55ec6397ce8c6c.tar.gz
Manuals to be checked with "mandocdb -t" need not be in the current
directory or one of its subdirectories.
-rw-r--r--mandocdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 685c1d70..7b48b228 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -685,7 +685,7 @@ filescan(const char *file)
exitcode = (int)MANDOCLEVEL_BADARG;
say(file, NULL);
return;
- } else if (strstr(buf, basedir) != buf) {
+ } else if (OP_TEST != op && strstr(buf, basedir) != buf) {
exitcode = (int)MANDOCLEVEL_BADARG;
say("", "%s: outside base directory", buf);
return;