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/234288-check_smtp.c.patch | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 web/attachments/234288-check_smtp.c.patch (limited to 'web/attachments/234288-check_smtp.c.patch') diff --git a/web/attachments/234288-check_smtp.c.patch b/web/attachments/234288-check_smtp.c.patch new file mode 100644 index 0000000..9a69cce --- /dev/null +++ b/web/attachments/234288-check_smtp.c.patch @@ -0,0 +1,53 @@ +*** check_smtp.c.orig Wed Jun 13 12:19:37 2007 +--- check_smtp.c Wed Jun 13 12:22:30 2007 +*************** process_arguments (int argc, char **argv +*** 582,603 **** + break; + case 'C': /* commands */ + if (ncommands >= command_size) { +! commands = realloc (commands, command_size+8); + if (commands == NULL) + die (STATE_UNKNOWN, + _("Could not realloc() units [%d]\n"), ncommands); + } +! commands[ncommands] = optarg; + ncommands++; + break; + case 'R': /* server responses */ + if (nresponses >= response_size) { +! responses = realloc (responses, response_size+8); + if (responses == NULL) + die (STATE_UNKNOWN, + _("Could not realloc() units [%d]\n"), nresponses); + } +! responses[nresponses] = optarg; + nresponses++; + break; + case 'c': /* critical time threshold */ +--- 582,607 ---- + break; + case 'C': /* commands */ + if (ncommands >= command_size) { +! command_size+=8; +! commands = realloc (commands, sizeof(char **)*command_size); + if (commands == NULL) + die (STATE_UNKNOWN, + _("Could not realloc() units [%d]\n"), ncommands); + } +! commands[ncommands] = (char *)malloc (sizeof(char)*255); +! strncpy (commands[ncommands], optarg, 250); + ncommands++; + break; + case 'R': /* server responses */ + if (nresponses >= response_size) { +! response_size += 8; +! responses = realloc (responses, sizeof(char **)*response_size); + if (responses == NULL) + die (STATE_UNKNOWN, + _("Could not realloc() units [%d]\n"), nresponses); + } +! responses[nresponses] = (char *)malloc (sizeof(char)*255); +! strncpy (responses[nresponses], optarg, 250); + nresponses++; + break; + case 'c': /* critical time threshold */ -- cgit v1.2.3-74-g34f1