aboutsummaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd22
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2006-05-27 06:51:09 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2006-05-27 06:51:09 +0000
commit2afaa37bc23b9a30a9ea85f666e940221c3a1d6d (patch)
treefcb4c0cc154fc7418439d6a660880a7f2100952e /mail/cyrus-imapd22
parentcfa3bb1e0a326f63ca6496a6f534b2c96d72553d (diff)
downloadports-2afaa37bc23b9a30a9ea85f666e940221c3a1d6d.tar.gz
ports-2afaa37bc23b9a30a9ea85f666e940221c3a1d6d.zip
Notes
Diffstat (limited to 'mail/cyrus-imapd22')
-rw-r--r--mail/cyrus-imapd22/Makefile2
-rw-r--r--mail/cyrus-imapd22/files/patch-imtest::imtest.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/mail/cyrus-imapd22/Makefile b/mail/cyrus-imapd22/Makefile
index 1985467d81e0..4cbb7e14d88f 100644
--- a/mail/cyrus-imapd22/Makefile
+++ b/mail/cyrus-imapd22/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cyrus-imapd
PORTVERSION= 2.2.13
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ \
diff --git a/mail/cyrus-imapd22/files/patch-imtest::imtest.c b/mail/cyrus-imapd22/files/patch-imtest::imtest.c
index e1fd1efa8c06..957e35677d78 100644
--- a/mail/cyrus-imapd22/files/patch-imtest::imtest.c
+++ b/mail/cyrus-imapd22/files/patch-imtest::imtest.c
@@ -21,3 +21,16 @@ diff -u imtest/imtest.c.orig imtest/imtest.c
/*
* This is the setup routine for the SSL client.
*
+@@ -886,6 +886,12 @@
+ }
+
+ if (*str != '\r') {
++ /* trim CRLF */
++ char *p = str + strlen(str) - 1;
++ if (p >= str && *p == '\n') *p-- = '\0';
++ if (p >= str && *p == '\r') *p-- = '\0';
++
++ /* alloc space for decoded response */
+ len = strlen(str) + 1;
+ *line = malloc(len);
+ if ((*line) == NULL) {