diff options
author | 2015-07-18 05:46:52 +0000 | |
---|---|---|
committer | 2015-07-18 05:46:52 +0000 | |
commit | 17740f1e489041b7b82238f8af7b0b334cf51585 (patch) | |
tree | ded455a7ad1a34ba3e8589fe9d6c3c5ff577130f | |
parent | Implement HTTP Strict Transport Security (HSTS). (diff) | |
download | wireguard-openbsd-17740f1e489041b7b82238f8af7b0b334cf51585.tar.xz wireguard-openbsd-17740f1e489041b7b82238f8af7b0b334cf51585.zip |
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>.
-rw-r--r-- | usr.bin/mandoc/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c index 3974cd9e3ed..46bcdfa6614 100644 --- a/usr.bin/mandoc/main.c +++ b/usr.bin/mandoc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.144 2015/07/17 22:35:36 schwarze Exp $ */ +/* $OpenBSD: main.c,v 1.145 2015/07/18 05:46:52 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -547,7 +547,7 @@ fs_lookup(const struct manpaths *paths, size_t ipath, 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) |