diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-07-28 18:36:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-07-28 18:36:06 +0000 |
commit | 56c0ff2f58a081f03178fb754e236ba3bc1faf65 (patch) | |
tree | 1bd44c9f7d8bb59988fc8b4717bffa8547d68e12 /main.c | |
parent | 1e6d57dd850829e1c3ada7cf5333943ac918287c (diff) | |
download | mandoc-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.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -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; |