diff options
author | 2019-07-28 18:35:09 +0000 | |
---|---|---|
committer | 2019-07-28 18:35:09 +0000 | |
commit | 225b5963ec301e25c25db99fe5dbd4ef692e4f82 (patch) | |
tree | 294e892b6ef0a15474db9e516b54f2dc4656bdfe | |
parent | In man(1) mode, do the search for each name independently, and (diff) | |
download | wireguard-openbsd-225b5963ec301e25c25db99fe5dbd4ef692e4f82.tar.xz wireguard-openbsd-225b5963ec301e25c25db99fe5dbd4ef692e4f82.zip |
There is no point in pledge(2)ing literally the same list twice,
so delete the second copy. No functional change.
-rw-r--r-- | usr.bin/mandoc/main.c | 16 |
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; |