From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29162 invoked from network); 7 Aug 2020 20:57:28 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 7 Aug 2020 20:57:28 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id fd66853d for ; Fri, 7 Aug 2020 15:57:25 -0500 (EST) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id 101da557 for ; Fri, 7 Aug 2020 15:57:25 -0500 (EST) Date: Fri, 7 Aug 2020 15:57:25 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: add a forgotten "#if HAVE_PLEDGE"; patch sent in by Log Message: ----------- add a forgotten "#if HAVE_PLEDGE"; patch sent in by who found the problem the hard way on Fedora 32 Modified Files: -------------- mandoc: main.c Revision Data ------------- Index: main.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/main.c,v retrieving revision 1.352 retrieving revision 1.353 diff -Lmain.c -Lmain.c -u -p -r1.352 -r1.353 --- main.c +++ main.c @@ -847,6 +847,7 @@ process_onefile(struct mparse *mp, struc 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) { @@ -854,6 +855,7 @@ process_onefile(struct mparse *mp, struc "%s", strerror(errno)); exit(mandoc_msg_getrc()); } +#endif } if (outst->had_output && outst->outtype <= OUTT_UTF8) { if (outst->outdata == NULL) -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv