[monitoring-plugins] check_dig: fix wrong IPv6 arguments order

Git Repository git at monitoring-plugins.org
Tue Jan 28 04:20:07 CET 2014


 Module: monitoring-plugins
 Branch: master
 Commit: 58e57b32bf733bf952794c056047fb810684a468
 Author: Thomas Guyot-Sionnest <dermoth at aei.ca>
   Date: Mon Jan 27 22:16:35 2014 -0500
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=58e57b3

check_dig: fix wrong IPv6 arguments order

---

 NEWS                | 1 +
 THANKS.in           | 1 +
 plugins/check_dig.c | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index cd5a046..3a91d75 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ This file documents the major additions and syntax changes between releases.
 	Don't let e.g. check_http's -C option reset SSL version if e.g. -S 1 -C 5 is specified
 	check_ide_smart could disable offline auto tests but could not re-enable them.
 	  For this reason all SMART command modes have been disabled.
+	check_dig: fix wrong IPv6 arguments order (Stéphane Bortzmeyer)
 
 	WARNINGS
 	check_procs now ignores its parent process to avoid unexpected results when invoked via certain shells
diff --git a/THANKS.in b/THANKS.in
index a77ecd4..e9196a5 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -303,3 +303,4 @@ Simon Kainz
 Steve Weinreich
 Geoff Oakham
 Tim Laszlo
+Stéphane Bortzmeyer
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 903019d..7575995 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -88,8 +88,8 @@ main (int argc, char **argv)
     usage_va(_("Could not parse arguments"));
 
   /* 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);
   gettimeofday (&tv, NULL);



More information about the Commits mailing list