=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/read.c,v retrieving revision 1.122 retrieving revision 1.123 diff -c -r1.122 -r1.123 *** src/usr.bin/mandoc/read.c 2016/01/08 02:53:09 1.122 --- src/usr.bin/mandoc/read.c 2016/07/10 13:33:50 1.123 *************** *** 1,4 **** ! /* $OpenBSD: read.c,v 1.122 2016/01/08 02:53:09 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2016 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: read.c,v 1.123 2016/07/10 13:33:50 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2016 Ingo Schwarze *************** *** 773,779 **** if ( ! curp->gzip) { mandoc_asprintf(&cp, "%s.gz", file); ! fd = open(file, O_RDONLY); free(cp); if (fd != -1) { curp->gzip = 1; --- 773,779 ---- if ( ! curp->gzip) { mandoc_asprintf(&cp, "%s.gz", file); ! fd = open(cp, O_RDONLY); free(cp); if (fd != -1) { curp->gzip = 1;