From b5ac0d16b2e5939d5f8ed9bb711872292f9b8ab2 Mon Sep 17 00:00:00 2001
From: Holger Weiss <holger@zedat.fu-berlin.de>
Date: Sun, 18 Aug 2013 22:30:30 +0200
Subject: 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 file changed, 4 deletions(-)

(limited to 'plugins/check_mysql.c')

diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 95e800c6..db670e2d 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)
-- 
cgit v1.2.3-74-g34f1