diff options
-rw-r--r-- | usr.bin/cap_mkdb/cap_mkdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c index 7e9535ba1e3..7175d2603d6 100644 --- a/usr.bin/cap_mkdb/cap_mkdb.c +++ b/usr.bin/cap_mkdb/cap_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cap_mkdb.c,v 1.19 2015/01/16 06:40:06 deraadt Exp $ */ +/* $OpenBSD: cap_mkdb.c,v 1.20 2015/10/29 02:58:00 deraadt Exp $ */ /* $NetBSD: cap_mkdb.c,v 1.5 1995/09/02 05:47:12 jtc Exp $ */ /*- @@ -77,6 +77,9 @@ main(int argc, char *argv[]) { int c; + if (pledge("stdio rpath wpath cpath", NULL) == -1) + err(1, "pledge"); + capname = NULL; while ((c = getopt(argc, argv, "f:iv")) != -1) { switch(c) { |