summaryrefslogtreecommitdiffstats
path: root/usr.bin/tftp/main.c
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/tftp/main.c
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/tftp/main.c')
-rw-r--r--usr.bin/tftp/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index 152b6617524..37ea7d565f8 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.36 2015/10/07 14:36:07 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.37 2015/10/09 01:37:09 deraadt Exp $ */
/* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */
/*
@@ -171,8 +171,8 @@ main(int argc, char *argv[])
{
f = -1;
- if (tame("stdio inet rpath wpath cpath", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio inet rpath wpath cpath", NULL) == -1)
+ err(1, "pledge");
/* set default transfer mode */
strlcpy(mode, "netascii", sizeof(mode));