[152599] trunk/dports/net/nagios-plugins/files
mps at macports.org
mps at macports.org
Mon Sep 12 14:33:16 PDT 2016
Revision: 152599
https://trac.macports.org/changeset/152599
Author: mps at macports.org
Date: 2016-09-12 14:33:16 -0700 (Mon, 12 Sep 2016)
Log Message:
-----------
nagios-plugins: update patch files.
Added Paths:
-----------
trunk/dports/net/nagios-plugins/files/patch-plugins-check_nt.c.diff
Removed Paths:
-------------
trunk/dports/net/nagios-plugins/files/patch-plugins-check_procs.c.diff
Added: trunk/dports/net/nagios-plugins/files/patch-plugins-check_nt.c.diff
===================================================================
--- trunk/dports/net/nagios-plugins/files/patch-plugins-check_nt.c.diff (rev 0)
+++ trunk/dports/net/nagios-plugins/files/patch-plugins-check_nt.c.diff 2016-09-12 21:33:16 UTC (rev 152599)
@@ -0,0 +1,10 @@
+--- plugins/check_nt.c.orig 2016-09-12 15:50:47.000000000 -0500
++++ plugins/check_nt.c 2016-09-12 16:09:47.000000000 -0500
+@@ -85,6 +85,7 @@
+ unsigned long critical_value=0L;
+ int check_warning_value=FALSE;
+ int check_critical_value=FALSE;
++unsigned int socket_timeout;
+ char *critical_value_string=NULL;
+ char *warning_value_string=NULL;
+ enum checkvars vars_to_check = CHECK_NONE;
Deleted: trunk/dports/net/nagios-plugins/files/patch-plugins-check_procs.c.diff
===================================================================
--- trunk/dports/net/nagios-plugins/files/patch-plugins-check_procs.c.diff 2016-09-12 21:29:14 UTC (rev 152598)
+++ trunk/dports/net/nagios-plugins/files/patch-plugins-check_procs.c.diff 2016-09-12 21:33:16 UTC (rev 152599)
@@ -1,27 +0,0 @@
---- plugins/check_procs.c.orig 2010-07-27 13:47:16.000000000 -0700
-+++ plugins/check_procs.c 2011-03-16 09:03:13.000000000 -0700
-@@ -318,6 +318,8 @@
- int err;
- int cflags = REG_NOSUB | REG_EXTENDED;
- char errbuf[MAX_INPUT_BUFFER];
-+ char *temp_string;
-+ int i=0;
- static struct option longopts[] = {
- {"warning", required_argument, 0, 'w'},
- {"critical", required_argument, 0, 'c'},
-@@ -450,7 +452,14 @@
- regerror (err, &re_args, errbuf, MAX_INPUT_BUFFER);
- die (STATE_UNKNOWN, "PROCS %s: %s - %s\n", _("UNKNOWN"), _("Could not compile regular expression"), errbuf);
- }
-- asprintf (&fmt, "%s%sregex args '%s'", (fmt ? fmt : ""), (options ? ", " : ""), optarg);
-+ /* Strip off any | within the regex optarg */
-+ temp_string = strdup(optarg);
-+ while(temp_string[i]!='\0'){
-+ if(temp_string[i]=='|')
-+ temp_string[i]=',';
-+ i++;
-+ }
-+ asprintf (&fmt, "%s%sregex args '%s'", (fmt ? fmt : ""), (options ? ", " : ""), temp_string);
- options |= EREG_ARGS;
- break;
- case 'r': /* RSS */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160912/8cfbda21/attachment.html>
More information about the macports-changes
mailing list