aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitcba8d7943ad7818fe5ba0d5c6b5c3a3f9873d831 (patch)
treec5d0f94f6eac2b8d21bb6721311e068fc446e231 /main.c
parent1d53e201ef6a632cbf58370a74ab85b7e082288e (diff)
downloadmandoc-cba8d7943ad7818fe5ba0d5c6b5c3a3f9873d831.tar.gz
mandoc-cba8d7943ad7818fe5ba0d5c6b5c3a3f9873d831.tar.zst
mandoc-cba8d7943ad7818fe5ba0d5c6b5c3a3f9873d831.zip
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.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/main.c b/main.c
index 7d6085e7..9da85435 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.338 2019/07/28 18:23:17 schwarze Exp $ */
+/* $Id: main.c,v 1.339 2019/07/28 18:36:06 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;