summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/bin/dig/dig.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-12-17 18:10:11 +0000
committerderaadt <deraadt@openbsd.org>2019-12-17 18:10:11 +0000
commitff86574aa1bb9a3da494eb49a9425a26f0d61d92 (patch)
tree921a598e6604cb4cc987099402eff730ffe2bd5c /usr.sbin/bind/bin/dig/dig.c
parentdisable all the dscp probing code. it sees all the dscp option (diff)
downloadwireguard-openbsd-ff86574aa1bb9a3da494eb49a9425a26f0d61d92.tar.xz
wireguard-openbsd-ff86574aa1bb9a3da494eb49a9425a26f0d61d92.zip
Since dscp probing (setsockopt, special cmsg handling, etc) no longer occurs
late, pledge "dns" is enough and "inet" is not required.
Diffstat (limited to 'usr.sbin/bind/bin/dig/dig.c')
-rw-r--r--usr.sbin/bind/bin/dig/dig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bind/bin/dig/dig.c b/usr.sbin/bind/bin/dig/dig.c
index 8288b30660d..165e894a6b8 100644
--- a/usr.sbin/bind/bin/dig/dig.c
+++ b/usr.sbin/bind/bin/dig/dig.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dig.c,v 1.21 2019/12/17 01:52:25 sthen Exp $ */
+/* $Id: dig.c,v 1.22 2019/12/17 18:10:11 deraadt Exp $ */
/*! \file */
@@ -2162,7 +2162,7 @@ void dig_setup(int argc, char **argv)
ISC_LIST_INIT(server_list);
ISC_LIST_INIT(search_list);
- if (pledge("stdio rpath inet dns", NULL) == -1) {
+ if (pledge("stdio rpath dns", NULL) == -1) {
perror("pledge");
exit(1);
}
@@ -2199,7 +2199,7 @@ void dig_query_setup(isc_boolean_t is_batchfile, isc_boolean_t config_only,
else if (keysecret[0] != 0)
setup_text_key();
- if (pledge("stdio inet dns", NULL) == -1) {
+ if (pledge("stdio dns", NULL) == -1) {
perror("pledge");
exit(1);
}