summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;