source@mandoc.bsd.lv
 help / color / Atom feed
* mandoc: There is no point in pledge(2)ing literally the same list twice, 
@ 2019-07-28 18:36 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-07-28 18:36 UTC (permalink / raw)
  To: source

Log Message:
-----------
There is no point in pledge(2)ing literally the same list twice,
so delete the second copy.  No functional change.

Modified Files:
--------------
    mandoc:
        main.c

Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/main.c,v
retrieving revision 1.338
retrieving revision 1.339
diff -Lmain.c -Lmain.c -u -p -r1.338 -r1.339
--- main.c
+++ main.c
@@ -544,22 +544,6 @@ main(int argc, char *argv[])
 		break;
 	}
 
-#if HAVE_PLEDGE
-	if (outst.use_pager) {
-		if (pledge("stdio rpath tmppath tty proc exec", NULL) == -1) {
-			mandoc_msg(MANDOCERR_PLEDGE, 0, 0,
-			    "%s", strerror(errno));
-			return mandoc_msg_getrc();
-		}
-	} else {
-		if (pledge("stdio rpath", NULL) == -1) {
-			mandoc_msg(MANDOCERR_PLEDGE, 0, 0,
-			    "%s", strerror(errno));
-			return mandoc_msg_getrc();
-		}
-	}
-#endif
-
 	if (search.argmode == ARG_FILE && auxpaths != NULL) {
 		if (strcmp(auxpaths, "doc") == 0)
 			options |= MPARSE_MDOC;
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

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

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-28 18:36 mandoc: There is no point in pledge(2)ing literally the same list twice, schwarze

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/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