From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 738e58ac for ; Sun, 10 Jul 2016 08:35:00 -0500 (EST) Date: Sun, 10 Jul 2016 08:35:00 -0500 (EST) Message-Id: <14120487462497294871.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Fix a nasty typo that prevented .so links to gziped manuals X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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. Modified Files: -------------- mdocml: read.c Revision Data ------------- Index: read.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/read.c,v retrieving revision 1.148 retrieving revision 1.149 diff -Lread.c -Lread.c -u -p -r1.148 -r1.149 --- read.c +++ read.c @@ -798,7 +798,7 @@ mparse_open(struct mparse *curp, const c 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; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv