summaryrefslogtreecommitdiffstats
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-10 13:34:30 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-10 13:34:30 +0000
commit9efbcc1d41b6068c746255b6a5006d3d96fb7834 (patch)
treea4bf1fd5bbe93d1ede0bfab95a61a7cd1382173a /read.c
parentf76fe2452fef70dd2e7dfffdb8619587208898b9 (diff)
downloadmandoc-9efbcc1d41b6068c746255b6a5006d3d96fb7834.tar.gz
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.
Diffstat (limited to 'read.c')
-rw-r--r--read.c2
1 files changed, 1 insertions, 1 deletions
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;