From d03246054c89cb277ab8b751ed583986ebd4c8c8 Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Mon, 12 Oct 2015 19:56:48 +0000 Subject: ttyname() no longer does ioctl TIOCGETA, so pledge("tty") is no longer needed here. ok deraadt@ --- usr.bin/who/who.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/who') 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)) { -- cgit v1.2.3