summaryrefslogtreecommitdiff
path: root/usr.bin/mesg
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-12 20:03:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-12 20:03:25 +0000
commit8a51b7165004de1c449b17fe7305a7e74dbd4170 (patch)
treeaef5d94974812d2fe31aad3fbe0802e5e38b9c83 /usr.bin/mesg
parentd03246054c89cb277ab8b751ed583986ebd4c8c8 (diff)
these callers of ttyname() no longer need to pledge "tty"
Diffstat (limited to 'usr.bin/mesg')
-rw-r--r--usr.bin/mesg/mesg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mesg/mesg.c b/usr.bin/mesg/mesg.c
index fa16831736a..925aa470ce1 100644
--- a/usr.bin/mesg/mesg.c
+++ b/usr.bin/mesg/mesg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mesg.c,v 1.9 2015/10/12 06:00:57 deraadt Exp $ */
+/* $OpenBSD: mesg.c,v 1.10 2015/10/12 20:03:24 deraadt Exp $ */
/* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */
/*
@@ -52,7 +52,7 @@ main(int argc, char *argv[])
char *tty;
int ch;
- if (pledge("stdio rpath fattr tty", NULL) == -1)
+ if (pledge("stdio rpath fattr", NULL) == -1)
err(1, "pledge");
while ((ch = getopt(argc, argv, "")) != -1)