From cba8d7943ad7818fe5ba0d5c6b5c3a3f9873d831 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 28 Jul 2019 18:36:06 +0000 Subject: There is no point in pledge(2)ing literally the same list twice, so delete the second copy. No functional change. --- main.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'main.c') 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 * Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze @@ -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; -- cgit v1.2.3-56-ge451