From 8b17915ecc3a3030bd6c8cb566e6c625ddafe08f Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sun, 8 Sep 2024 20:34:16 +0200 Subject: [PATCH] Adding d/p/13_check_mysql_fix_variables from upstream https://patch-diff.githubusercontent.com/raw/monitoring-plugins/monitoring-plugins/pull/2015.diff --- debian/patches/13_check_mysql_fix_variables | 28 +++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 29 insertions(+) create mode 100644 debian/patches/13_check_mysql_fix_variables diff --git a/debian/patches/13_check_mysql_fix_variables b/debian/patches/13_check_mysql_fix_variables new file mode 100644 index 0000000..2f85e77 --- /dev/null +++ b/debian/patches/13_check_mysql_fix_variables @@ -0,0 +1,28 @@ +diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c +index 6a7daf11a..15ec04c04 100644 +--- a/plugins/check_mysql.c ++++ b/plugins/check_mysql.c +@@ -59,8 +59,8 @@ bool ssl = false; + char *opt_file = NULL; + char *opt_group = NULL; + unsigned int db_port = MYSQL_PORT; +-int check_slave = 0, warn_sec = 0, crit_sec = 0; +-int ignore_auth = 0; ++bool check_slave = false; ++bool ignore_auth = false; + int verbose = 0; + + static double warning_time = 0; +@@ -456,10 +456,10 @@ process_arguments (int argc, char **argv) + db_port = atoi (optarg); + break; + case 'S': +- check_slave = 1; /* check-slave */ ++ check_slave = true; /* check-slave */ + break; + case 'n': +- ignore_auth = 1; /* ignore-auth */ ++ ignore_auth = true; /* ignore-auth */ + break; + case 'w': + warning = optarg; diff --git a/debian/patches/series b/debian/patches/series index 2084ca6..a359f59 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,4 +4,5 @@ 10_check_curl_fix_redirects 11_check_curl_raise_ssl_issue 12_check_curl_add_docu +13_check_mysql_fix_variables # feature patches