=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.175 retrieving revision 1.176 diff -u -p -r1.175 -r1.176 --- mandoc/cgi.c 2021/08/19 15:23:36 1.175 +++ mandoc/cgi.c 2021/11/05 17:04:10 1.176 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.175 2021/08/19 15:23:36 schwarze Exp $ */ +/* $Id: cgi.c,v 1.176 2021/11/05 17:04:10 schwarze Exp $ */ /* * Copyright (c) 2014-2019, 2021 Ingo Schwarze * Copyright (c) 2011, 2012 Kristaps Dzonsons @@ -879,7 +879,7 @@ resp_format(const struct req *req, const char *file) int fd; int usepath; - if (-1 == (fd = open(file, O_RDONLY, 0))) { + if (-1 == (fd = open(file, O_RDONLY))) { puts("

You specified an invalid manual file.

"); return; }