diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
commit | 7a01108f60e58c5683c269bbbb884090b5a0620f (patch) | |
tree | d28dc1713411066fb4ced6b7bb3fe35eb3a43955 /usr.bin/who | |
parent | 76228dc5f1e37f76feb11003febafceed8e121f0 (diff) |
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/who')
-rw-r--r-- | usr.bin/who/who.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index 0bf8b179669..b409e541a99 100644 --- a/usr.bin/who/who.c +++ b/usr.bin/who/who.c @@ -1,4 +1,4 @@ -/* $OpenBSD: who.c,v 1.22 2015/10/07 17:27:35 semarie Exp $ */ +/* $OpenBSD: who.c,v 1.23 2015/10/09 01:37:09 deraadt Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* @@ -74,8 +74,8 @@ main(int argc, char *argv[]) setlocale(LC_ALL, ""); - if (tame("stdio getpw rpath tty", NULL) == -1) - err(1, "tame"); + if (pledge("stdio getpw rpath tty", NULL) == -1) + err(1, "pledge"); mytty = ttyname(0); /* strip any directory component */ @@ -290,11 +290,11 @@ file(char *name) /* NOTREACHED */ } if (show_term || show_idle) { - if (tame("stdio getpw rpath", NULL) == -1) - err(1, "tame"); + if (pledge("stdio getpw rpath", NULL) == -1) + err(1, "pledge"); } else { - if (tame("stdio getpw", NULL) == -1) - err(1, "tame"); + if (pledge("stdio getpw", NULL) == -1) + err(1, "pledge"); } return(ufp); } |