mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
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).
This commit is contained in:
parent
779b91e48f
commit
b5ac0d16b2
1 changed files with 0 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue