aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-22 14:58:48 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-22 14:58:48 +0000
commit1e3130ad3be292657bd987599ef9ec5250cbe878 (patch)
tree376fe796d666ea16f300797eb916e721fee1df02 /main.c
parentcd37e27b9cf9f352216f9238b796274bbe24945b (diff)
downloadmandoc-1e3130ad3be292657bd987599ef9ec5250cbe878.tar.gz
mandoc-1e3130ad3be292657bd987599ef9ec5250cbe878.tar.zst
mandoc-1e3130ad3be292657bd987599ef9ec5250cbe878.zip
Since SQLite is gone, we no longer need the "flock" pledge.
Patch from semarie@, OK tb@.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 02abaaf7..9039c46d 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.283 2017/02/17 14:31:52 schwarze Exp $ */
+/* $Id: main.c,v 1.284 2017/02/22 14:58:48 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -149,7 +149,7 @@ main(int argc, char *argv[])
return mandocdb(argc, argv);
#if HAVE_PLEDGE
- if (pledge("stdio rpath tmppath tty proc exec flock", NULL) == -1)
+ if (pledge("stdio rpath tmppath tty proc exec", NULL) == -1)
err((int)MANDOCLEVEL_SYSERR, "pledge");
#endif
@@ -312,7 +312,7 @@ main(int argc, char *argv[])
#if HAVE_PLEDGE
if (!use_pager)
- if (pledge("stdio rpath flock", NULL) == -1)
+ if (pledge("stdio rpath", NULL) == -1)
err((int)MANDOCLEVEL_SYSERR, "pledge");
#endif