diff options
author | obache <obache@pkgsrc.org> | 2007-03-09 14:46:08 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2007-03-09 14:46:08 +0000 |
commit | f8cc89b2fa6b61604fa82e4c86a2030c5520311c (patch) | |
tree | 3bf0148830211acda529a78631818fb9dd38d10f | |
parent | b86e85015b761e2471422a4e7b624a0d7f008285 (diff) | |
download | pkgsrc-f8cc89b2fa6b61604fa82e4c86a2030c5520311c.tar.gz |
compatibility fix for SASL 2.1.22.
Taken from:
https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imtest/imtest.c.diff?r1=1.107&r2=1.108
Bump PKGREVISION.
Reported by Jukka Salmi in PR 35959.
-rw-r--r-- | mail/cyrus-imapd/Makefile | 4 | ||||
-rw-r--r-- | mail/cyrus-imapd/distinfo | 4 | ||||
-rw-r--r-- | mail/cyrus-imapd/patches/patch-al | 27 |
3 files changed, 24 insertions, 11 deletions
diff --git a/mail/cyrus-imapd/Makefile b/mail/cyrus-imapd/Makefile index a903f02ca3c..7e107d68e46 100644 --- a/mail/cyrus-imapd/Makefile +++ b/mail/cyrus-imapd/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.69 2006/12/01 13:36:59 joerg Exp $ +# $NetBSD: Makefile,v 1.70 2007/03/09 14:46:08 obache Exp $ DISTNAME= cyrus-imapd-2.2.13 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= mail MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \ ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/imap/ diff --git a/mail/cyrus-imapd/distinfo b/mail/cyrus-imapd/distinfo index 2060d863b5f..26c93165280 100644 --- a/mail/cyrus-imapd/distinfo +++ b/mail/cyrus-imapd/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.26 2006/12/01 13:36:59 joerg Exp $ +$NetBSD: distinfo,v 1.27 2007/03/09 14:46:08 obache Exp $ SHA1 (cyrus-imapd-2.2.13.tar.gz) = ba84b67a1cae4c15d5a588d010764031167970c4 RMD160 (cyrus-imapd-2.2.13.tar.gz) = 7e8ac84b5ddd9f1206e71d5b659d07d8400f9ac2 @@ -9,7 +9,7 @@ SHA1 (patch-ac) = 48557e05ef0d82413da18dd46d9c4baf802a771d SHA1 (patch-ad) = e99638a062b2695514c6859788eac3fd02cf5c1d SHA1 (patch-ae) = b1865b68a8f798a3766e53e60e9e68099df9bd54 SHA1 (patch-af) = 2aaf1be5fcb102b047a57fe0a908b3e8f95037ea -SHA1 (patch-al) = 6fa8967eb97f7cfdb93de86a45aa90ab3a1bd129 +SHA1 (patch-al) = d28a0e604f0ddcf22c6753be333216780558e05c SHA1 (patch-am) = 0804e6fa6694ed820861b740ac1bead29b3eeb4b SHA1 (patch-ap) = 95b987e83ddd53065f7ffe503d0f07694f9bcd6b SHA1 (patch-aq) = 0d764585dc2af05964b03723c29ff127ebe3c25d diff --git a/mail/cyrus-imapd/patches/patch-al b/mail/cyrus-imapd/patches/patch-al index 5d34a762482..642918e523c 100644 --- a/mail/cyrus-imapd/patches/patch-al +++ b/mail/cyrus-imapd/patches/patch-al @@ -1,7 +1,7 @@ -$NetBSD: patch-al,v 1.2 2005/03/02 21:42:48 wiz Exp $ +$NetBSD: patch-al,v 1.3 2007/03/09 14:46:08 obache Exp $ ---- imtest/imtest.c.orig Wed Aug 4 15:03:18 2004 -+++ imtest/imtest.c Sun Nov 28 15:12:44 2004 +--- imtest/imtest.c.orig 2006-01-21 05:31:23.000000000 +0900 ++++ imtest/imtest.c @@ -47,7 +47,9 @@ #include <sys/time.h> #include <sys/types.h> @@ -12,14 +12,27 @@ $NetBSD: patch-al,v 1.2 2005/03/02 21:42:48 wiz Exp $ #include <sys/stat.h> #include <fcntl.h> -@@ -71,6 +73,10 @@ - #include <sys/file.h> +@@ -72,6 +74,10 @@ #include <netinet/in.h> #include <netdb.h> -+ + +#ifdef HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif - ++ #include <sasl/sasl.h> #include <sasl/saslutil.h> + +@@ -886,6 +892,12 @@ imt_stat getauthline(struct sasl_cmd_t * + } + + 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) { |