summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2019-07-28 18:35:10 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2019-07-28 18:35:10 +0000
commitabd98dc754fc837ff6a6615abe8fad7d096361d3 (patch)
treed773c84913d067766ca9a9bc620c644c505321bf /usr.bin/mandoc/main.c
parent0ed4a2c5ce76b64d7636be3e384e3dba0f6df9de (diff)
There is no point in pledge(2)ing literally the same list twice,
so delete the second copy. No functional change.
Diffstat (limited to 'usr.bin/mandoc/main.c')
-rw-r--r--usr.bin/mandoc/main.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c
index 0706ad25960..1b1c2cf2526 100644
--- a/usr.bin/mandoc/main.c
+++ b/usr.bin/mandoc/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.241 2019/07/28 18:22:35 schwarze Exp $ */
+/* $OpenBSD: main.c,v 1.242 2019/07/28 18:35:09 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -523,20 +523,6 @@ main(int argc, char *argv[])
break;
}
- 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();
- }
- }
-
if (search.argmode == ARG_FILE && auxpaths != NULL) {
if (strcmp(auxpaths, "doc") == 0)
options |= MPARSE_MDOC;