source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Fix a nasty typo that prevented .so links to gziped manuals
@ 2016-07-10 13:35 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2016-07-10 13:35 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-10 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-10 13:35 mdocml: Fix a nasty typo that prevented .so links to gziped manuals schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).