summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-08-18 20:30:30 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-08-18 20:30:30 (GMT)
commitb5ac0d16b2e5939d5f8ed9bb711872292f9b8ab2 (patch)
tree7f25849ad4cb9bba03982d131496ada6d46124d7
parent779b91e48f97804958a453858cca195457174d38 (diff)
downloadmonitoring-plugins-b5ac0d16b2e5939d5f8ed9bb711872292f9b8ab2.tar.gz
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).
-rw-r--r--plugins/check_mysql.c4
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)
456 } 456 }
457 else if (db_user == NULL) 457 else if (db_user == NULL)
458 db_user = argv[c++]; 458 db_user = argv[c++];
459 else if (opt_file == NULL)
460 opt_file = argv[c++];
461 else if (opt_group == NULL)
462 opt_group = argv[c++];
463 else if (db_pass == NULL) 459 else if (db_pass == NULL)
464 db_pass = argv[c++]; 460 db_pass = argv[c++];
465 else if (db == NULL) 461 else if (db == NULL)