* 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, other threads:[~2019-07-28 18:36 UTC | newest]
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
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).