summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-07-10 13:33:51 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-07-10 13:33:51 +0000
commit090184777d9130dff6b5de9f102ecd0ee49971ea (patch)
tree609c7041f349534884f7b919ea0a059c40c7925d /usr.bin
parentec40fcd1a595b7035889acf83e498d638ecefff8 (diff)
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 'usr.bin')
-rw-r--r--usr.bin/mandoc/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/read.c b/usr.bin/mandoc/read.c
index 65ee258def2..100965e22ca 100644
--- a/usr.bin/mandoc/read.c
+++ b/usr.bin/mandoc/read.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: read.c,v 1.122 2016/01/08 02:53:09 schwarze Exp $ */
+/* $OpenBSD: read.c,v 1.123 2016/07/10 13:33:50 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org>
@@ -773,7 +773,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;