summaryrefslogtreecommitdiff
path: root/usr.bin/tty
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2015-10-12 19:56:48 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2015-10-12 19:56:48 +0000
commitd03246054c89cb277ab8b751ed583986ebd4c8c8 (patch)
treed49a1543d70f1b9173b4a90e80d3ebb90081b352 /usr.bin/tty
parenta81dbd5a4feba03c2d428d5e8cab3f908a30fd72 (diff)
ttyname() no longer does ioctl TIOCGETA, so pledge("tty") is no longer
needed here. ok deraadt@
Diffstat (limited to 'usr.bin/tty')
-rw-r--r--usr.bin/tty/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tty/tty.c b/usr.bin/tty/tty.c
index bd9c20d3ec9..5977cf26bcc 100644
--- a/usr.bin/tty/tty.c
+++ b/usr.bin/tty/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.9 2015/10/09 01:37:09 deraadt Exp $ */
+/* $OpenBSD: tty.c,v 1.10 2015/10/12 19:56:47 naddy Exp $ */
/* $NetBSD: tty.c,v 1.4 1994/12/07 00:46:57 jtc Exp $ */
/*
@@ -43,7 +43,7 @@ main(int argc, char *argv[])
int ch, sflag;
char *t;
- if (pledge("stdio rpath tty", NULL) == -1)
+ if (pledge("stdio rpath", NULL) == -1)
err(1, "pledge");
sflag = 0;