artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cff096
)
pledge "stdio proc exec" works.
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 17:48:34 +0000
(17:48 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 17:48:34 +0000
(17:48 +0000)
ok doug
usr.bin/apply/apply.c
patch
|
blob
|
history
diff --git
a/usr.bin/apply/apply.c
b/usr.bin/apply/apply.c
index
6218c6c
..
ee9e481
100644
(file)
--- a/
usr.bin/apply/apply.c
+++ b/
usr.bin/apply/apply.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: apply.c,v 1.2
6 2013/11/25 18:03:17
deraadt Exp $ */
+/* $OpenBSD: apply.c,v 1.2
7 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;