artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c6776
)
pledge "stdio rpath wpath cpath proc exec"; this spawns cpp.
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 20:57:00 +0000
(20:57 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 20:57:00 +0000
(20:57 +0000)
ok doug
usr.bin/rpcgen/rpc_main.c
patch
|
blob
|
history
diff --git
a/usr.bin/rpcgen/rpc_main.c
b/usr.bin/rpcgen/rpc_main.c
index
dec139f
..
6003e11
100644
(file)
--- a/
usr.bin/rpcgen/rpc_main.c
+++ b/
usr.bin/rpcgen/rpc_main.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rpc_main.c,v 1.3
0 2015/08/20 22:32:41
deraadt Exp $ */
+/* $OpenBSD: rpc_main.c,v 1.3
1 2015/10/10 20:57:00
deraadt Exp $ */
/* $NetBSD: rpc_main.c,v 1.9 1996/02/19 11:12:43 pk Exp $ */
/*
@@
-140,6
+140,9
@@
main(int argc, char *argv[])
{
struct commandline cmd;
+ if (pledge("stdio rpath wpath cpath proc exec", NULL) == -1)
+ perror("pledge");
+
(void) memset((char *) &cmd, 0, sizeof(struct commandline));
clear_args();
if (!parseargs(argc, argv, &cmd))