summaryrefslogtreecommitdiff
path: root/usr.bin/tee
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
commit7a01108f60e58c5683c269bbbb884090b5a0620f (patch)
treed28dc1713411066fb4ced6b7bb3fe35eb3a43955 /usr.bin/tee
parent76228dc5f1e37f76feb11003febafceed8e121f0 (diff)
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/tee')
-rw-r--r--usr.bin/tee/tee.c10
1 files changed, 5 insertions, 5 deletions
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) {