source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Insist that manual page file name extensions must begin with a
@ 2015-07-18  5:48 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-07-18  5:48 UTC (permalink / raw)
  To: source

Log Message:
-----------
Insist that manual page file name extensions must begin with a digit,
lest pkg.conf(5) be shown when pkg(5) is asked for;
issue reported by Michael Reed <m dot reed at mykolab dot com>.

Modified Files:
--------------
    mdocml:
        main.c

Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/main.c,v
retrieving revision 1.239
retrieving revision 1.240
diff -Lmain.c -Lmain.c -u -p -r1.239 -r1.240
--- main.c
+++ main.c
@@ -570,7 +570,7 @@ fs_lookup(const struct manpaths *paths, 
 		free(file);
 	}
 
-	mandoc_asprintf(&file, "%s/man%s/%s.*",
+	mandoc_asprintf(&file, "%s/man%s/%s.[01-9]*",
 	    paths->paths[ipath], sec, name);
 	globres = glob(file, 0, NULL, &globinfo);
 	if (globres != 0 && globres != GLOB_NOMATCH)
--
 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:[~2015-07-18  5:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-18  5:48 mdocml: Insist that manual page file name extensions must begin with a 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).