diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-07 14:36:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-07 14:36:08 +0000 |
commit | af2426a16b5a7a44890e64b992f3e4618ed93850 (patch) | |
tree | da77d32dd668451d7b580715e1463062e6926342 /usr.bin/tftp | |
parent | 1afae1eb2e9a5062bd2a7af4e48eecc030d286d2 (diff) |
tame "stdio inet rpath wpath cpath" supports all the functions of tftp.
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r-- | usr.bin/tftp/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index 68a6d4b6f1a..152b6617524 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.35 2015/01/16 06:40:13 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.36 2015/10/07 14:36:07 deraadt Exp $ */ /* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */ /* @@ -171,6 +171,9 @@ main(int argc, char *argv[]) { f = -1; + if (tame("stdio inet rpath wpath cpath", NULL) == -1) + err(1, "tame"); + /* set default transfer mode */ strlcpy(mode, "netascii", sizeof(mode)); |