summaryrefslogtreecommitdiffstats
path: root/usr.bin/tftp/main.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-18 03:54:22 +0000
committerderaadt <deraadt@openbsd.org>2015-10-18 03:54:22 +0000
commit3b6a07388e622de315a8a156d8fe65dd4fb6fde7 (patch)
tree4a1f701cb4c106df1cfcf4f0d788e92ef6f646ef /usr.bin/tftp/main.c
parentForcibly delete /var/run/ypbind.lock to prepare for the worst cases. (diff)
downloadwireguard-openbsd-3b6a07388e622de315a8a156d8fe65dd4fb6fde7.tar.xz
wireguard-openbsd-3b6a07388e622de315a8a156d8fe65dd4fb6fde7.zip
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/main.c')
-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 */