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

source@mandoc.bsd.lv

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/mandoc-source

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 mandoc-source mandoc-source/ http://inbox.vuxu.org/mandoc-source \
		source@mandoc.bsd.lv
	public-inbox-index mandoc-source

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git