freebsd-ports/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff
Mathieu Arnold bcaf0be955 Fix building WITH=NLS
Many thanks to:	tijl
Sponsored by:	Absolight
2014-09-24 21:27:49 +00:00

13 lines
652 B
Diff

--- plugins/check_dig.c.orig 2014-06-23 16:01:00 UTC
+++ plugins/check_dig.c
@@ -94,8 +94,8 @@
timeout_interval_dig = timeout_interval / number_tries + number_tries;
/* get the command to run */
- xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d",
- PATH_TO_DIG, dns_server, server_port, query_address, record_type, dig_args, query_transport, number_tries, timeout_interval_dig);
+ xasprintf (&command_line, "%s %s @%s -z -p %d %s %s %s",
+ PATH_TO_DIG, dig_args, dns_server, server_port, query_address, record_type, query_transport);
alarm (timeout_interval);
gettimeofday (&tv, NULL);