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/267864-patch.check_mysql.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 web/attachments/267864-patch.check_mysql.c (limited to 'web/attachments/267864-patch.check_mysql.c') diff --git a/web/attachments/267864-patch.check_mysql.c b/web/attachments/267864-patch.check_mysql.c new file mode 100644 index 0000000..59ef214 --- /dev/null +++ b/web/attachments/267864-patch.check_mysql.c @@ -0,0 +1,29 @@ +54a55 +> char *defaults_file = NULL; +89a91,94 +> if (defaults_file != NULL) { +> mysql_options(&mysql,MYSQL_READ_DEFAULT_FILE,defaults_file); +> } +> +249a255 +> {"defaults-file", required_argument, 0, 'f'}, +263c269 +< c = getopt_long (argc, argv, "hvVSP:p:u:d:H:c:w:", longopts, &option); +--- +> c = getopt_long (argc, argv, "hvVSP:p:u:d:f:H:c:w:", longopts, &option); +288a295,297 +> case 'f': +> defaults_file = optarg; +> break; +332a342,343 +> else if (defaults_file == NULL) +> defaults_file = argv[c++]; +355a367 +> +387a400,401 +> printf (" %s\n", "-f, --defaults-file=FILE"); +> printf (" %s\n", _("Read mysql options from FILE")); +405c419 +< printf ("%s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n",progname); +--- +> printf ("%s [-d database] [-H host] [-P port] [-u user] [-p password] [-f defaultsfile] [-S]\n",progname); -- cgit v1.2.3-74-g34f1