diff options
| author | 2019-12-17 18:10:11 +0000 | |
|---|---|---|
| committer | 2019-12-17 18:10:11 +0000 | |
| commit | ff86574aa1bb9a3da494eb49a9425a26f0d61d92 (patch) | |
| tree | 921a598e6604cb4cc987099402eff730ffe2bd5c /usr.sbin/bind/bin/dig/dig.c | |
| parent | disable all the dscp probing code. it sees all the dscp option (diff) | |
| download | wireguard-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.c | 6 |
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); } |
