summaryrefslogtreecommitdiff
path: root/usr.bin/leave/leave.c
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/leave/leave.c
parent76228dc5f1e37f76feb11003febafceed8e121f0 (diff)
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/leave/leave.c')
-rw-r--r--usr.bin/leave/leave.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/leave/leave.c b/usr.bin/leave/leave.c
index e7493d54a0b..ec11d62735a 100644
--- a/usr.bin/leave/leave.c
+++ b/usr.bin/leave/leave.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: leave.c,v 1.16 2015/10/03 05:13:23 deraadt Exp $ */
+/* $OpenBSD: leave.c,v 1.17 2015/10/09 01:37:08 deraadt Exp $ */
/* $NetBSD: leave.c,v 1.4 1995/07/03 16:50:13 phil Exp $ */
/*
@@ -63,8 +63,8 @@ main(int argc, char *argv[])
int plusnow = 0, twentyfour;
char buf[50];
- if (tame("stdio proc", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio proc", NULL) == -1)
+ err(1, "pledge");
if (setvbuf(stdout, NULL, _IOLBF, 0) != 0)
errx(1, "Cannot set stdout to line buffered.");