=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.148 retrieving revision 1.149 diff -u -p -r1.148 -r1.149 --- mandoc/read.c 2016/01/08 02:53:13 1.148 +++ mandoc/read.c 2016/07/10 13:34:30 1.149 @@ -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;