diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 19:10:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 19:10:21 +0000 |
commit | cd044eb8a865599acb2c22b88ea86d6b4f0e28c8 (patch) | |
tree | 9f6ad1ba384e7f56bf54fc59d7934ce6f241db75 /usr.bin/sendbug | |
parent | 5eeba60752e1783d972ed96cb2ddeec5fd025a8d (diff) |
pledge "stdio getpw rpath wpath cpath tmppath proc exec". doug pointed out
the need for getpw. Not sure if I see ways to improve this program.
ok doug
Diffstat (limited to 'usr.bin/sendbug')
-rw-r--r-- | usr.bin/sendbug/sendbug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c index 8075f44ed31..ab760d0175a 100644 --- a/usr.bin/sendbug/sendbug.c +++ b/usr.bin/sendbug/sendbug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sendbug.c,v 1.69 2015/01/16 06:40:11 deraadt Exp $ */ +/* $OpenBSD: sendbug.c,v 1.70 2015/10/10 19:10:20 deraadt Exp $ */ /* * Written by Ray Lai <ray@cyth.net>. @@ -86,6 +86,9 @@ main(int argc, char *argv[]) time_t mtime; FILE *fp; + if (pledge("stdio getpw rpath wpath cpath tmppath proc exec", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "DEPV")) != -1) switch (ch) { case 'D': |