about summary refs log tree commit diff
path: root/src/usr.bin/apply
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-11-12 17:05:57 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-11-12 17:06:12 +0100
commit3c57c4d0031b7206ced8f313e3efa02dbcf88f78 (patch)
treeb1dec8d32d8a2e2e74f2a48a870bb4ad680fb911 /src/usr.bin/apply
parent166efa19c7ed5e13b1db524dd0b26fc48a56a2ee (diff)
downloadoutils-3c57c4d0031b7206ced8f313e3efa02dbcf88f78.tar.gz
outils-3c57c4d0031b7206ced8f313e3efa02dbcf88f78.tar.xz
outils-3c57c4d0031b7206ced8f313e3efa02dbcf88f78.zip
cvs update v0.3
Diffstat (limited to 'src/usr.bin/apply')
-rw-r--r--src/usr.bin/apply/apply.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr.bin/apply/apply.c b/src/usr.bin/apply/apply.c
index 6218c6c..ee9e481 100644
--- a/src/usr.bin/apply/apply.c
+++ b/src/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;