=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rpcgen/rpc_main.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- src/usr.bin/rpcgen/rpc_main.c 2015/08/20 22:32:41 1.30 +++ src/usr.bin/rpcgen/rpc_main.c 2015/10/10 20:57:00 1.31 @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_main.c,v 1.30 2015/08/20 22:32:41 deraadt Exp $ */ +/* $OpenBSD: rpc_main.c,v 1.31 2015/10/10 20:57:00 deraadt Exp $ */ /* $NetBSD: rpc_main.c,v 1.9 1996/02/19 11:12:43 pk Exp $ */ /* @@ -139,6 +139,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();