From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/310361-nagios-1.4.13-no_pass.diff | 44 +++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 web/attachments/310361-nagios-1.4.13-no_pass.diff (limited to 'web/attachments/310361-nagios-1.4.13-no_pass.diff') diff --git a/web/attachments/310361-nagios-1.4.13-no_pass.diff b/web/attachments/310361-nagios-1.4.13-no_pass.diff new file mode 100644 index 0000000..b621967 --- /dev/null +++ b/web/attachments/310361-nagios-1.4.13-no_pass.diff @@ -0,0 +1,44 @@ +--- nagios-plugins-1.4.13/plugins/check_mysql.c 2008-08-16 00:47:32.000000000 -0400 ++++ nagios-plugins-1.4.13-no_pass/plugins/check_mysql.c 2009-01-23 18:10:48.000000000 -0500 +@@ -265,7 +265,7 @@ + return ERROR; + + while (1) { +- c = getopt_long (argc, argv, "hvVSP:p:u:d:H:s:c:w:", longopts, &option); ++ c = getopt_long (argc, argv, "hvVSP:p::u:d:H:s:c:w:", longopts, &option); + + if (c == -1 || c == EOF) + break; +@@ -289,12 +289,16 @@ + db_user = optarg; + break; + case 'p': /* authentication information: password */ +- db_pass = strdup(optarg); +- +- /* Delete the password from process list */ +- while (*optarg != '\0') { +- *optarg = 'X'; +- optarg++; ++ if (optarg == NULL) ++ db_pass = strdup(""); ++ else ++ { ++ db_pass = strdup(optarg); ++ /* Delete the password from process list */ ++ while (*optarg != '\0') { ++ *optarg = 'X'; ++ optarg++; ++ } + } + break; + case 'P': /* critical time threshold */ +@@ -361,9 +365,6 @@ + if (db_host == NULL) + db_host = strdup(""); + +- if (db_pass == NULL) +- db_pass = strdup(""); +- + if (db == NULL) + db = strdup(""); + -- cgit v1.2.3-74-g34f1