diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-12 06:00:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-12 06:00:58 +0000 |
commit | eb93b276dd5c4e24085ec0c00c672b62ff26d1a8 (patch) | |
tree | 11a36052aefd70d4794f8a1601ca9e9993575f7e /usr.bin/mesg/mesg.c | |
parent | abf855d05c560f0169efc245b9ee564b1c200ee5 (diff) |
same thing as biff, pledge "stdio rpath fattr tty"
Diffstat (limited to 'usr.bin/mesg/mesg.c')
-rw-r--r-- | usr.bin/mesg/mesg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mesg/mesg.c b/usr.bin/mesg/mesg.c index fd1483eca62..fa16831736a 100644 --- a/usr.bin/mesg/mesg.c +++ b/usr.bin/mesg/mesg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mesg.c,v 1.8 2009/10/27 23:59:40 deraadt Exp $ */ +/* $OpenBSD: mesg.c,v 1.9 2015/10/12 06:00:57 deraadt Exp $ */ /* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */ /* @@ -52,6 +52,9 @@ main(int argc, char *argv[]) char *tty; int ch; + if (pledge("stdio rpath fattr tty", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { case '?': |