mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 17:06:32 -04:00
19 lines
667 B
Perl
19 lines
667 B
Perl
--- plugins-scripts/check_ircd.pl.orig 2014-11-30 10:36:26 UTC
|
|
+++ plugins-scripts/check_ircd.pl
|
|
@@ -66,6 +66,7 @@ sub bindRemote ($$);
|
|
$ENV{'PATH'}='@TRUSTED_PATH@';
|
|
$ENV{'BASH_ENV'}='';
|
|
$ENV{'ENV'}='';
|
|
+$ENV{CDPATH} = "";
|
|
|
|
# -----------------------------------------------------------------[ Global ]--
|
|
|
|
@@ -153,7 +154,7 @@ sub bindRemote ($$)
|
|
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";
|