summaryrefslogtreecommitdiff
path: root/usr.bin/tftp
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-18 03:54:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-18 03:54:23 +0000
commit5f8c487cc545dff8edf0747bbbc1b69f7124dc89 (patch)
tree731e8dc241342bdba78bac1a470601a0b0bc703b /usr.bin/tftp
parentbe21318f5375da06c3c46a78a2dad9f816158ec6 (diff)
Add "dns" to the pledges. Previously these worked because of "inet",
alas "dns" is now a mandatory statement if you want to do dns!
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r--usr.bin/tftp/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index 37ea7d565f8..eaeaefdac3e 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.37 2015/10/09 01:37:09 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.38 2015/10/18 03:54:22 deraadt Exp $ */
/* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */
/*
@@ -171,7 +171,7 @@ main(int argc, char *argv[])
{
f = -1;
- if (pledge("stdio inet rpath wpath cpath", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath dns inet", NULL) == -1)
err(1, "pledge");
/* set default transfer mode */