From 251b4668f8bcf33b4f2267197c3f64c0d8ad42ac Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 7 Oct 2015 14:36:07 +0000 Subject: [PATCH] tame "stdio inet rpath wpath cpath" supports all the functions of tftp. --- usr.bin/tftp/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- 2.20.1