summaryrefslogtreecommitdiff
path: root/usr.bin/lastcomm
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/lastcomm
parent76228dc5f1e37f76feb11003febafceed8e121f0 (diff)
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/lastcomm')
-rw-r--r--usr.bin/lastcomm/lastcomm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c
index b4843dc160c..2e02770b366 100644
--- a/usr.bin/lastcomm/lastcomm.c
+++ b/usr.bin/lastcomm/lastcomm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lastcomm.c,v 1.22 2015/10/07 14:05:07 deraadt Exp $ */
+/* $OpenBSD: lastcomm.c,v 1.23 2015/10/09 01:37:08 deraadt Exp $ */
/* $NetBSD: lastcomm.c,v 1.9 1995/10/22 01:43:42 ghudson Exp $ */
/*
@@ -69,8 +69,8 @@ main(int argc, char *argv[])
int ch;
char *acctfile;
- if (tame("stdio rpath getpw", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio rpath getpw", NULL) == -1)
+ err(1, "pledge");
acctfile = _PATH_ACCT;
while ((ch = getopt(argc, argv, "f:")) != -1)