aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-07-13 07:41:52 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-07-13 07:41:52 +0000
commit5f83a879eaf1253db90c6ae48b9009ac62e593e1 (patch)
tree9da780a56423a37340d6891b8b095a0da82624d2 /irc
parentd0615c548488b5368ec48e70ee93782ef2b17f1a (diff)
downloadports-5f83a879eaf1253db90c6ae48b9009ac62e593e1.tar.gz
ports-5f83a879eaf1253db90c6ae48b9009ac62e593e1.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/ircd-ratbox-devel/Makefile2
-rw-r--r--irc/ircd-ratbox-devel/files/patch-libratbox_src_commio.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/irc/ircd-ratbox-devel/Makefile b/irc/ircd-ratbox-devel/Makefile
index a4a9cc55f5a4..38fb89b8c98d 100644
--- a/irc/ircd-ratbox-devel/Makefile
+++ b/irc/ircd-ratbox-devel/Makefile
@@ -8,7 +8,7 @@
PORTNAME= ircd-ratbox
PORTVERSION= 3.0.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= irc ipv6
MASTER_SITES= ftp://ftp.ircd-ratbox.org/pub/ircd-ratbox/testing/ \
ftp://ftp.demon.co.uk/pub/mirrors/ircd-ratbox/testing/ \
diff --git a/irc/ircd-ratbox-devel/files/patch-libratbox_src_commio.c b/irc/ircd-ratbox-devel/files/patch-libratbox_src_commio.c
new file mode 100644
index 000000000000..d309a12f4804
--- /dev/null
+++ b/irc/ircd-ratbox-devel/files/patch-libratbox_src_commio.c
@@ -0,0 +1,11 @@
+--- ./libratbox/src/commio.c.orig 2009-07-11 18:37:37.000000000 +0100
++++ ./libratbox/src/commio.c 2009-07-11 18:37:55.000000000 +0100
+@@ -2156,7 +2156,7 @@
+ if(msg.msg_controllen > 0 && msg.msg_control != NULL
+ && (cmsg = CMSG_FIRSTHDR(&msg)) != NULL)
+ {
+- rfds = (msg.msg_controllen - sizeof(struct cmsghdr)) / sizeof(int);
++ rfds = ((unsigned char *)cmsg + cmsg->cmsg_len - CMSG_DATA(cmsg)) / sizeof(int);
+
+ for(x = 0; x < nfds && x < rfds; x++)
+ {