diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-10 13:34:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-10 13:34:30 +0000 |
commit | 87de119a8d5be59dbd31d3e35769ad0fb01c86e7 (patch) | |
tree | 28783f44582b2aa0dc6bcf1c91ea0141560a7fda | |
parent | 98cf244417f3775dc30cd3f62214c24580ebb1d9 (diff) | |
download | mandoc-87de119a8d5be59dbd31d3e35769ad0fb01c86e7.tar.gz mandoc-87de119a8d5be59dbd31d3e35769ad0fb01c86e7.tar.zst mandoc-87de119a8d5be59dbd31d3e35769ad0fb01c86e7.zip |
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.
-rw-r--r-- | read.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.148 2016/01/08 02:53:13 schwarze Exp $ */ +/* $Id: read.c,v 1.149 2016/07/10 13:34:30 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |