summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-07-28 18:36:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-07-28 18:36:06 +0000
commit56c0ff2f58a081f03178fb754e236ba3bc1faf65 (patch)
tree1bd44c9f7d8bb59988fc8b4717bffa8547d68e12 /main.c
parent1e6d57dd850829e1c3ada7cf5333943ac918287c (diff)
downloadmandoc-56c0ff2f58a081f03178fb754e236ba3bc1faf65.tar.gz
There is no point in pledge(2)ing literally the same list twice,
so delete the second copy. No functional change.
Diffstat (limited to 'main.c')
-rw-r--r--main.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/main.c b/main.c
index 51c17c78..27718889 100644
--- a/main.c
+++ b/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;