From 9efbcc1d41b6068c746255b6a5006d3d96fb7834 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 10 Jul 2016 13:34:30 +0000 Subject: Fix a nasty typo that prevented .so links to gziped manuals from working in the absence of a mandoc.db(5) database. Found the hard way by Svyatoslav Mishyn on Crux Linux. --- read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read.c b/read.c index 3e5b3951..6bd48fc4 100644 --- a/read.c +++ b/read.c @@ -798,7 +798,7 @@ mparse_open(struct mparse *curp, const char *file) if ( ! curp->gzip) { mandoc_asprintf(&cp, "%s.gz", file); - fd = open(file, O_RDONLY); + fd = open(cp, O_RDONLY); free(cp); if (fd != -1) { curp->gzip = 1; -- cgit