diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-18 03:54:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-18 03:54:23 +0000 |
commit | 5f8c487cc545dff8edf0747bbbc1b69f7124dc89 (patch) | |
tree | 731e8dc241342bdba78bac1a470601a0b0bc703b /usr.bin/tftp | |
parent | be21318f5375da06c3c46a78a2dad9f816158ec6 (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.c | 4 |
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 */ |