diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2015-10-12 19:56:48 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2015-10-12 19:56:48 +0000 |
commit | d03246054c89cb277ab8b751ed583986ebd4c8c8 (patch) | |
tree | d49a1543d70f1b9173b4a90e80d3ebb90081b352 /usr.bin | |
parent | a81dbd5a4feba03c2d428d5e8cab3f908a30fd72 (diff) |
ttyname() no longer does ioctl TIOCGETA, so pledge("tty") is no longer
needed here. ok deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tty/tty.c | 4 | ||||
-rw-r--r-- | usr.bin/who/who.c | 4 |
2 files changed, 4 insertions, 4 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; diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index 62cfb034510..2956f398654 100644 --- a/usr.bin/who/who.c +++ b/usr.bin/who/who.c @@ -1,4 +1,4 @@ -/* $OpenBSD: who.c,v 1.25 2015/10/11 23:29:56 deraadt Exp $ */ +/* $OpenBSD: who.c,v 1.26 2015/10/12 19:56:47 naddy Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* @@ -74,7 +74,7 @@ main(int argc, char *argv[]) setlocale(LC_ALL, ""); - if (pledge("stdio rpath getpw tty", NULL) == -1) + if (pledge("stdio rpath getpw", NULL) == -1) err(1, "pledge"); if (mytty = ttyname(0)) { |