aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandocdb.c
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
commitd1a737e48a31df0b4b7dea1226e51a4ad23ef97a (patch)
tree8aa6cf28f6525a8aaa25489c4dec1a6785788d12 /mandocdb.c
parent80da5c33753e6423f0c705cd021a073af20577a9 (diff)
downloadmandoc-d1a737e48a31df0b4b7dea1226e51a4ad23ef97a.tar.gz
mandoc-d1a737e48a31df0b4b7dea1226e51a4ad23ef97a.tar.zst
mandoc-d1a737e48a31df0b4b7dea1226e51a4ad23ef97a.zip
Manuals to be checked with "mandocdb -t" need not be in the current
directory or one of its subdirectories.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 6dae38bc..b68131f9 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.71 2013/07/02 13:26:52 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.72 2013/10/18 21:10:07 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;