2 ## 06_checkircd.dpatch by <ultrotter@debian.org>
4 ## All lines beginning with `## DP:' are a description of the patch.
8 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
12 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
13 patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
16 -patch) patch -p1 ${patch_opts} < $0;;
17 -unpatch) patch -R -p1 ${patch_opts} < $0;;
19 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
26 diff -urNad /home/ultrotter/docs/projects/deb/nagios/new/nagios-plugins-1.3.1.0/plugins-scripts/check_ircd.pl nagios-plugins-1.3.1.0/plugins-scripts/check_ircd.pl
27 --- /home/ultrotter/docs/projects/deb/nagios/new/nagios-plugins-1.3.1.0/plugins-scripts/check_ircd.pl 2002-05-07 07:35:49.000000000 +0200
28 +++ nagios-plugins-1.3.1.0/plugins-scripts/check_ircd.pl 2004-08-12 15:54:50.000000000 +0200
30 my $proto = getprotobyname('tcp');
33 - my $thisaddr = gethostbyname($in_hostname);
35 my ($name, $aliases,$type,$len,$thataddr) = gethostbyname($in_remotehost);
36 # ($name,$aliases,$type,$len,$thisaddr) = gethostbyname($in_hostname);
38 exit $ERRORS{"UNKNOWN"};
40 $sockaddr = 'S n a4 x8';
41 - $this = pack($sockaddr, AF_INET, 0, $thisaddr);
42 + $this = pack($sockaddr, AF_INET, 0, INADDR_ANY);
43 $that = pack($sockaddr, AF_INET, $in_remoteport, $thataddr);
44 if (!bind(ClientSocket, $this)) {
45 print "IRCD UNKNOWN: Could not bind socket ($!)\n";