=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mandocdb.c,v retrieving revision 1.217 retrieving revision 1.218 diff -c -r1.217 -r1.218 *** src/usr.bin/mandoc/mandocdb.c 2021/08/19 16:55:24 1.217 --- src/usr.bin/mandoc/mandocdb.c 2021/10/24 21:24:16 1.218 *************** *** 1,4 **** ! /* $OpenBSD: mandocdb.c,v 1.217 2021/08/19 16:55:24 schwarze Exp $ */ /* * Copyright (c) 2011-2020 Ingo Schwarze * Copyright (c) 2011, 2012 Kristaps Dzonsons --- 1,4 ---- ! /* $OpenBSD: mandocdb.c,v 1.218 2021/10/24 21:24:16 deraadt Exp $ */ /* * Copyright (c) 2011-2020 Ingo Schwarze * Copyright (c) 2011, 2012 Kristaps Dzonsons *************** *** 2210,2220 **** say(tfn, "&dba_write"); goto err; } ! if ((fd1 = open(MANDOC_DB, O_RDONLY, 0)) == -1) { say(MANDOC_DB, "&open"); goto err; } ! if ((fd2 = open(tfn, O_RDONLY, 0)) == -1) { say(tfn, "&open"); goto err; } --- 2210,2220 ---- say(tfn, "&dba_write"); goto err; } ! if ((fd1 = open(MANDOC_DB, O_RDONLY)) == -1) { say(MANDOC_DB, "&open"); goto err; } ! if ((fd2 = open(tfn, O_RDONLY)) == -1) { say(tfn, "&open"); goto err; }