diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-07-18 05:47:32 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-07-18 05:47:32 +0000 |
commit | 43d1748cc0562a70dde2e6b375fe7f4a062b636f (patch) | |
tree | 41b285d07c97887786027e277f0d77999988ec31 | |
parent | 1531e952d86c68b1dfa2f18d8ea0f003445739af (diff) | |
download | mandoc-43d1748cc0562a70dde2e6b375fe7f4a062b636f.tar.gz |
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-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -570,7 +570,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) |