source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: add a forgotten "#if HAVE_PLEDGE"; patch sent in by <alexander
@ 2020-08-07 20:57 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2020-08-07 20:57 UTC (permalink / raw)
  To: source

Log Message:
-----------
add a forgotten "#if HAVE_PLEDGE";
patch sent in by <alexander dot gromnitsky at gmail dot com>
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-07 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07 20:57 mandoc: add a forgotten "#if HAVE_PLEDGE"; patch sent in by <alexander schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).