artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0569f88
)
tame "stdio inet rpath wpath cpath" supports all the functions of tftp.
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:36:07 +0000
(14:36 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:36:07 +0000
(14:36 +0000)
usr.bin/tftp/main.c
patch
|
blob
|
history
diff --git
a/usr.bin/tftp/main.c
b/usr.bin/tftp/main.c
index
68a6d4b
..
152b661
100644
(file)
--- a/
usr.bin/tftp/main.c
+++ b/
usr.bin/tftp/main.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: main.c,v 1.3
5 2015/01/16 06:40:13
deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.3
6 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));