-/* $Id: main.c,v 1.352 2020/07/21 15:10:01 schwarze Exp $ */
+/* $Id: main.c,v 1.353 2020/08/07 20:56:55 schwarze Exp $ */
/*
* Copyright (c) 2010-2012, 2014-2020 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
outst->use_pager = 0;
outst->tag_files = term_tag_init(conf->output.outfilename,
conf->output.tagfilename);
+#if HAVE_PLEDGE
if ((conf->output.outfilename != NULL ||
conf->output.tagfilename != NULL) &&
pledge("stdio rpath cpath", NULL) == -1) {
"%s", strerror(errno));
exit(mandoc_msg_getrc());
}
+#endif
}
if (outst->had_output && outst->outtype <= OUTT_UTF8) {
if (outst->outdata == NULL)