summaryrefslogtreecommitdiff
path: root/net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ircd.pl
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-05-09 17:53:39 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-05-09 17:53:39 +0000
commit88c5e8e9d24540e6494787e144b7ee9a6751b28c (patch)
treeb2afe23e1e3cc560ee9f8ee965611f389fc05bf8 /net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ircd.pl
parentFix the behavior of sys_lgetxattr() so that it mimics that of Linux where a (diff)
Add monitoring-plugins, a fork of nagios-plugins.
For now, use a snapshot from github until they release 1.6. Sponsored by: Absolight
Diffstat (limited to 'net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ircd.pl')
-rw-r--r--net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ircd.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ircd.pl b/net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ircd.pl
new file mode 100644
index 000000000000..891fb90b2cbd
--- /dev/null
+++ b/net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ircd.pl
@@ -0,0 +1,19 @@
+--- ./plugins-scripts/check_ircd.pl.orig 2014-04-27 19:59:06.000000000 +0200
++++ ./plugins-scripts/check_ircd.pl 2014-05-09 18:45:31.000000000 +0200
+@@ -65,6 +65,7 @@
+ $ENV{'PATH'}='@TRUSTED_PATH@';
+ $ENV{'BASH_ENV'}='';
+ $ENV{'ENV'}='';
++$ENV{CDPATH} = "";
+
+ # -----------------------------------------------------------------[ Global ]--
+
+@@ -152,7 +153,7 @@
+ print "IRCD UNKNOWN: Could not start socket ($!)\n";
+ exit $ERRORS{"UNKNOWN"};
+ }
+- $sockaddr = 'S n a4 x8';
++ $sockaddr = 'x C n a4 x8';
+ $that = pack($sockaddr, AF_INET, $in_remoteport, $thataddr);
+ if (!connect(ClientSocket, $that)) {
+ print "IRCD UNKNOWN: Could not connect socket ($!)\n";