From d1a737e48a31df0b4b7dea1226e51a4ad23ef97a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 18 Oct 2013 21:10:07 +0000 Subject: Manuals to be checked with "mandocdb -t" need not be in the current directory or one of its subdirectories. --- mandocdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mandocdb.c') 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 * Copyright (c) 2011, 2012, 2013 Ingo Schwarze @@ -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; -- cgit v1.2.3-56-ge451