ports/net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ircd.pl
Mathieu Arnold bcaf0be955 Fix building WITH=NLS
Many thanks to:	tijl
Sponsored by:	Absolight
2014-09-24 21:27:49 +00:00

19 lines
626 B
Perl

--- plugins-scripts/check_ircd.pl.orig 2014-07-06 17:55:03 UTC
+++ plugins-scripts/check_ircd.pl
@@ -66,6 +66,7 @@
$ENV{'PATH'}='@TRUSTED_PATH@';
$ENV{'BASH_ENV'}='';
$ENV{'ENV'}='';
+$ENV{CDPATH} = "";
# -----------------------------------------------------------------[ Global ]--
@@ -153,7 +154,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";