diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
commit | 7a01108f60e58c5683c269bbbb884090b5a0620f (patch) | |
tree | d28dc1713411066fb4ced6b7bb3fe35eb3a43955 /usr.bin/tftp/main.c | |
parent | 76228dc5f1e37f76feb11003febafceed8e121f0 (diff) |
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/tftp/main.c')
-rw-r--r-- | usr.bin/tftp/main.c | 6 |
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)); |