ports/173638: [PATCH] Revised check_ircd.pl patch for net-mgmt/nagios_plugins
Ryan Frederick
ryanrfrederick at gmail.com
Thu Nov 15 03:50:01 UTC 2012
>Number: 173638
>Category: ports
>Synopsis: [PATCH] Revised check_ircd.pl patch for net-mgmt/nagios_plugins
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Nov 15 03:50:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Ryan Frederick
>Release: 9.1-RC3
>Organization:
>Environment:
FreeBSD test.box 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 00:18:27 UTC 2012 root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Attached is a revised patch file for check_ircd.pl (patch-plugins-scripts__check_ircd.pl) in net-mgmt/nagios-plugins which corrects the pack() template to reflect the sockaddr_in struct in FreeBSD 7.0 and above.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- plugins-scripts/check_ircd.pl.orig 2012-06-27 12:32:47.000000000 -0500
+++ plugins-scripts/check_ircd.pl 2012-11-14 20:58:01.479745211 -0600
@@ -66,6 +66,7 @@
$ENV{PATH} = "";
$ENV{ENV} = "";
$ENV{BASH_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";
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list