freebsd-ports/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff
Mathieu Arnold 5012daeff6 Fix check_dig when it uses drill and when changing the port.
PR:		249027
Reported by:	Joakim Lindblom
2020-08-31 12:39:58 +00:00

13 lines
666 B
Diff

--- plugins/check_dig.c.orig 2015-07-30 21:40:06 UTC
+++ plugins/check_dig.c
@@ -94,8 +94,8 @@ main (int argc, char **argv)
timeout_interval_dig = ceil((double) timeout_interval / (double) number_tries);
/* get the command to run */
- xasprintf (&command_line, "%s %s %s -p %d @%s %s %s +tries=%d +time=%d",
- PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type, number_tries, timeout_interval_dig);
+ xasprintf (&command_line, "%s %s %s -p %d @%s %s %s",
+ PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type);
alarm (timeout_interval);
gettimeofday (&tv, NULL);