From 7a01108f60e58c5683c269bbbb884090b5a0620f Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 9 Oct 2015 01:37:11 +0000 Subject: Change all tame callers to namechange to pledge(2). --- usr.bin/tee/tee.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin/tee/tee.c') diff --git a/usr.bin/tee/tee.c b/usr.bin/tee/tee.c index 91bf24cac1e..8da58303ae2 100644 --- a/usr.bin/tee/tee.c +++ b/usr.bin/tee/tee.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tee.c,v 1.9 2015/10/07 14:34:34 deraadt Exp $ */ +/* $OpenBSD: tee.c,v 1.10 2015/10/09 01:37:09 deraadt Exp $ */ /* $NetBSD: tee.c,v 1.5 1994/12/09 01:43:39 jtc Exp $ */ /* @@ -74,8 +74,8 @@ main(int argc, char *argv[]) setlocale(LC_ALL, ""); - if (tame("stdio wpath cpath", NULL) == -1) - err(1, "tame"); + if (pledge("stdio wpath cpath", NULL) == -1) + err(1, "pledge"); append = 0; while ((ch = getopt(argc, argv, "ai")) != -1) { @@ -108,8 +108,8 @@ main(int argc, char *argv[]) argv++; } - if (tame("stdio", NULL) == -1) - err(1, "tame"); + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); while ((rval = read(STDIN_FILENO, buf, sizeof(buf))) > 0) { for (p = head; p; p = p->next) { -- cgit v1.2.3