=================================================================== RCS file: /cvs/mandoc/main.c,v retrieving revision 1.352 retrieving revision 1.354 diff -u -p -r1.352 -r1.354 --- mandoc/main.c 2020/07/21 15:10:01 1.352 +++ mandoc/main.c 2021/03/30 17:16:55 1.354 @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.352 2020/07/21 15:10:01 schwarze Exp $ */ +/* $Id: main.c,v 1.354 2021/03/30 17:16:55 schwarze Exp $ */ /* * Copyright (c) 2010-2012, 2014-2020 Ingo Schwarze * Copyright (c) 2008-2012 Kristaps Dzonsons @@ -846,7 +846,9 @@ process_onefile(struct mparse *mp, struct manpage *res if (outst->use_pager) { outst->use_pager = 0; outst->tag_files = term_tag_init(conf->output.outfilename, + outst->outtype == OUTT_HTML ? ".html" : "", conf->output.tagfilename); +#if HAVE_PLEDGE if ((conf->output.outfilename != NULL || conf->output.tagfilename != NULL) && pledge("stdio rpath cpath", NULL) == -1) { @@ -854,6 +856,7 @@ process_onefile(struct mparse *mp, struct manpage *res "%s", strerror(errno)); exit(mandoc_msg_getrc()); } +#endif } if (outst->had_output && outst->outtype <= OUTT_UTF8) { if (outst->outdata == NULL)