summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 17:48:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 17:48:35 +0000
commit438183935e03fdcb37ad7adfe45794a8939da2ef (patch)
treebd9451cd1c1b8b1a5643270e0356e860d052b1a0 /usr.bin
parent9133cb142426d2d52a20d2c52d98e3fd9a10118b (diff)
pledge "stdio proc exec" works.
ok doug
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/apply/apply.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c
index 6218c6cb5d6..ee9e48162cb 100644
--- a/usr.bin/apply/apply.c
+++ b/usr.bin/apply/apply.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apply.c,v 1.26 2013/11/25 18:03:17 deraadt Exp $ */
+/* $OpenBSD: apply.c,v 1.27 2015/10/10 17:48:34 deraadt Exp $ */
/* $NetBSD: apply.c,v 1.3 1995/03/25 03:38:23 glass Exp $ */
/*-
@@ -54,6 +54,9 @@ main(int argc, char *argv[])
char *c, *c2, *cmd, *p, *q;
size_t len;
+ if (pledge("stdio proc exec", NULL) == -1)
+ err(1, "pledge");
+
debug = 0;
magic = '%'; /* Default magic char is `%'. */
nargs = -1;