summaryrefslogtreecommitdiffstats
path: root/usr.bin/readlink
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-09 01:37:06 +0000
committerderaadt <deraadt@openbsd.org>2015-10-09 01:37:06 +0000
commit0bd1216cbfac4316d823b5f086842b66ddea2018 (patch)
treefd4a00b7f31d65ad01880d2fd2d63c87485cacec /usr.bin/readlink
parenttame -> pledge. (diff)
downloadwireguard-openbsd-0bd1216cbfac4316d823b5f086842b66ddea2018.tar.xz
wireguard-openbsd-0bd1216cbfac4316d823b5f086842b66ddea2018.zip
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/readlink')
-rw-r--r--usr.bin/readlink/readlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/readlink/readlink.c b/usr.bin/readlink/readlink.c
index a5a0445283a..6380b3e0e46 100644
--- a/usr.bin/readlink/readlink.c
+++ b/usr.bin/readlink/readlink.c
@@ -1,5 +1,5 @@
/*
- * $OpenBSD: readlink.c,v 1.26 2015/10/07 14:10:50 deraadt Exp $
+ * $OpenBSD: readlink.c,v 1.27 2015/10/09 01:37:08 deraadt Exp $
*
* Copyright (c) 1997
* Kenneth Stailey (hereinafter referred to as the author)
@@ -44,8 +44,8 @@ main(int argc, char *argv[])
int n, ch, nflag = 0, fflag = 0;
extern int optind;
- if (tame("stdio rpath", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
while ((ch = getopt(argc, argv, "fn")) != -1)
switch (ch) {