From 87de119a8d5be59dbd31d3e35769ad0fb01c86e7 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/read.c b/read.c index 0ef3cdfc..6cbcd2df 100644 --- a/read.c +++ b/read.c @@ -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 * Copyright (c) 2010-2016 Ingo Schwarze @@ -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 v1.2.3-56-ge451