summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-12 20:03:24 +0000
committerderaadt <deraadt@openbsd.org>2015-10-12 20:03:24 +0000
commitbfbb4ae4d611e6ed5f74e3965be1f486f1380155 (patch)
treedb951468b4eceb5a74944860b3b6eb717a6b8e48
parentttyname() no longer does ioctl TIOCGETA, so pledge("tty") is no longer (diff)
downloadwireguard-openbsd-bfbb4ae4d611e6ed5f74e3965be1f486f1380155.tar.xz
wireguard-openbsd-bfbb4ae4d611e6ed5f74e3965be1f486f1380155.zip
these callers of ttyname() no longer need to pledge "tty"
-rw-r--r--usr.bin/biff/biff.c4
-rw-r--r--usr.bin/mesg/mesg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c
index 6f0e07d352d..cecd5e2f25e 100644
--- a/usr.bin/biff/biff.c
+++ b/usr.bin/biff/biff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: biff.c,v 1.12 2015/10/12 05:59:43 deraadt Exp $ */
+/* $OpenBSD: biff.c,v 1.13 2015/10/12 20:03:24 deraadt Exp $ */
/* $NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $ */
/*
@@ -49,7 +49,7 @@ main(int argc, char *argv[])
int ch;
char *name;
- if (pledge("stdio rpath fattr tty", NULL) == -1)
+ if (pledge("stdio rpath fattr", NULL) == -1)
err(1, "pledge");
while ((ch = getopt(argc, argv, "")) != -1)
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)