diff options
author | 2015-11-01 18:17:59 +0000 | |
---|---|---|
committer | 2015-11-01 18:17:59 +0000 | |
commit | 4d425b9df26dcbe37a23788c6158730d08373e54 (patch) | |
tree | e6b96f60065aa4798d49d782ee0836f814c31ea8 | |
parent | Compare nd6 llinfo pointer with NULL. No binary change. (diff) | |
download | wireguard-openbsd-4d425b9df26dcbe37a23788c6158730d08373e54.tar.xz wireguard-openbsd-4d425b9df26dcbe37a23788c6158730d08373e54.zip |
pledge m4. tested by me.
reordered to match the manpage, and added tmppath as an annotation
prompted by deraadt@
-rw-r--r-- | usr.bin/m4/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c index b75877fbf9a..5336268f681 100644 --- a/usr.bin/m4/main.c +++ b/usr.bin/m4/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.84 2014/12/21 09:33:12 espie Exp $ */ +/* $OpenBSD: main.c,v 1.85 2015/11/01 18:17:59 espie Exp $ */ /* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */ /*- @@ -174,6 +174,9 @@ main(int argc, char *argv[]) int n; char *p; + if (pledge("stdio rpath wpath cpath tmppath proc exec", NULL) == -1) + err(1, "pledge"); + if (signal(SIGINT, SIG_IGN) != SIG_IGN) signal(SIGINT, onintr); |