Просмотр исходного кода

check_dig: fix wrong IPv6 arguments order

Thomas Guyot-Sionnest 12 лет назад
Родитель
Сommit
33e80c0049
3 измененных файлов с 4 добавлено и 2 удалено
  1. 1 0
      NEWS
  2. 1 0
      THANKS.in
  3. 2 2
      plugins/check_dig.c

+ 1 - 0
NEWS

@@ -20,6 +20,7 @@ This file documents the major additions and syntax changes between releases.
 	Fixed bug in check_ntp_time average time calculation (larsi)
 	Fixed bug in check_ntp_time average time calculation (larsi)
 	Fixed empty NPTest.cache file blocking writing to the file (dermoth)
 	Fixed empty NPTest.cache file blocking writing to the file (dermoth)
 	Fixed newlines in parse.ini output (dermoth)
 	Fixed newlines in parse.ini output (dermoth)
+	check_dig: fix wrong IPv6 arguments order (Stéphane Bortzmeyer)
 
 
 	WARNINGS
 	WARNINGS
 	check_procs now ignores its parent process to avoid unexpected results when invoked via certain shells
 	check_procs now ignores its parent process to avoid unexpected results when invoked via certain shells

+ 1 - 0
THANKS.in

@@ -306,3 +306,4 @@ Patric Wust
 Oskar Liljeblad
 Oskar Liljeblad
 Geoff Oakham
 Geoff Oakham
 Tilmann Bubeck
 Tilmann Bubeck
+Stéphane Bortzmeyer

+ 2 - 2
plugins/check_dig.c

@@ -88,8 +88,8 @@ main (int argc, char **argv)
     usage_va(_("Could not parse arguments"));
     usage_va(_("Could not parse arguments"));
 
 
   /* get the command to run */
   /* get the command to run */
-  xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s",
-            PATH_TO_DIG, dns_server, server_port, query_address, record_type, dig_args, query_transport);
+  xasprintf (&command_line, "%s %s @%s -p %d %s -t %s %s",
+            PATH_TO_DIG, query_transport, dns_server, server_port, query_address, record_type, dig_args);
 
 
   alarm (timeout_interval);
   alarm (timeout_interval);
   gettimeofday (&tv, NULL);
   gettimeofday (&tv, NULL);