[nagiosplug] check_mysql: Don't accept new positional arguments

"Nagios Plugin Development" <[email protected]> Sun, 18 Aug 2013 20:40:46 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: b5ac0d16b2e5939d5f8ed9bb711872292f9b8ab2
 Author: Holger Weiss <[email protected]>
   Date: Sun Aug 18 22:30:30 2013 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=b5ac0d1

check_mysql: Don't accept new positional arguments

Do not also accept the new -f/--file and -g/--group options as
positional arguments (especially not prior to "db_pass" and "db", as
that would break backward compatibility).

---

 plugins/check_mysql.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 95e800c..db670e2 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -456,10 +456,6 @@ process_arguments (int argc, char **argv)
 			}
 		else if (db_user == NULL)
 			db_user = argv[c++];
-		else if (opt_file == NULL)
-			opt_file = argv[c++];
-		else if (opt_group == NULL)
-			opt_group = argv[c++];
 		else if (db_pass == NULL)
 			db_pass = argv[c++];
 		else if (db == NULL)


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk