source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Manuals to be checked with "mandocdb -t" need not be in the
@ 2013-10-18 21:10 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-10-18 21:10 UTC (permalink / raw)
  To: source

Log Message:
-----------
Manuals to be checked with "mandocdb -t" need not be in the current
directory or one of its subdirectories.

Modified Files:
--------------
    mdocml:
        mandocdb.c

Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.71 -r1.72
--- mandocdb.c
+++ 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;
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-10-18 21:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18 21:10 mdocml: Manuals to be checked with "mandocdb -t" need not be in the schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).