pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/sendmail811 - Add patch from NetBSD 1.6 branch's ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6fb117699f08
branches:  trunk
changeset: 461632:6fb117699f08
user:      taca <taca%pkgsrc.org@localhost>
date:      Thu Sep 18 17:10:35 2003 +0000

description:
- Add patch from NetBSD 1.6 branch's changes for parseaddr.c 1.8.2.1-1.8.2.3.
- Also bump sendmail version information itself.
- bump package revision.

BUGS
        Setting USE_WIDEPATCH=NO breaks the package.

diffstat:

 mail/sendmail811/Makefile         |   4 +-
 mail/sendmail811/distinfo         |   4 +-
 mail/sendmail811/patches/patch-ah |  66 +++++++++++++++++++++++++++++++++++++++
 mail/sendmail811/patches/patch-ai |   9 +++++
 4 files changed, 80 insertions(+), 3 deletions(-)

diffs (112 lines):

diff -r 417266fac66f -r 6fb117699f08 mail/sendmail811/Makefile
--- a/mail/sendmail811/Makefile Thu Sep 18 16:25:08 2003 +0000
+++ b/mail/sendmail811/Makefile Thu Sep 18 17:10:35 2003 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2003/09/05 19:00:59 tron Exp $
+# $NetBSD: Makefile,v 1.12 2003/09/18 17:10:35 taca Exp $
 
 DISTNAME=      sendmail.8.11.6
 PKGNAME=       sendmail-8.11.6
-PKGREVISION=   5
+PKGREVISION=   6
 WRKSRC=                ${WRKDIR}/${PKGNAME:C/nb[0-9]+$//}
 CATEGORIES=    mail
 MASTER_SITES=  ftp://ftp.sendmail.org/pub/sendmail/ \
diff -r 417266fac66f -r 6fb117699f08 mail/sendmail811/distinfo
--- a/mail/sendmail811/distinfo Thu Sep 18 16:25:08 2003 +0000
+++ b/mail/sendmail811/distinfo Thu Sep 18 17:10:35 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2003/03/04 00:26:50 seb Exp $
+$NetBSD: distinfo,v 1.4 2003/09/18 17:10:36 taca Exp $
 
 SHA1 (sendmail.8.11.6.tar.gz) = 8f24fc7824f6d99f1be08a9eec6fe18d56cab1be
 Size (sendmail.8.11.6.tar.gz) = 1374835 bytes
@@ -13,3 +13,5 @@
 SHA1 (patch-ae) = 5e3efecc7ac7ffed40278b3c29dd1152990f3b33
 SHA1 (patch-af) = db9e5d94b1b1f4cd7e5c9f25b36772e90e2987fe
 SHA1 (patch-ag) = 002f02fffce038bf9b7aeea8bce26f55c55f033f
+SHA1 (patch-ah) = 4ecee7aa515647fabfb3a7dcd4874f7f301a38e2
+SHA1 (patch-ai) = 62001829421cd80cb087543964f2fa7b939a20ab
diff -r 417266fac66f -r 6fb117699f08 mail/sendmail811/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/sendmail811/patches/patch-ah Thu Sep 18 17:10:35 2003 +0000
@@ -0,0 +1,66 @@
+$NetBSD: patch-ah,v 1.1 2003/09/18 17:10:37 taca Exp $
+
+--- sendmail/parseaddr.c.orig  2003-09-19 00:49:40.000000000 +0900
++++ sendmail/parseaddr.c
+@@ -645,7 +645,7 @@ int masklen;
+ }
+ #endif
+ 
+-#define NOCHAR                -1      /* signal nothing in lookahead token */
++#define NOCHAR                (-1)    /* signal nothing in lookahead token */
+ 
+ char **
+ prescan(addr, delim, pvpbuf, pvpbsize, delimptr, toktab)
+@@ -731,22 +731,31 @@ prescan(addr, delim, pvpbuf, pvpbsize, d
+                               /* see if there is room */
+                               if (q >= &pvpbuf[pvpbsize - 5])
+                               {
++      addrtoolong:
+                                       usrerr("553 5.1.1 Address too long");
+                                       if (strlen(addr) > (SIZE_T) MAXNAME)
+                                               addr[MAXNAME] = '\0';
+       returnnull:
+                                       if (delimptr != NULL)
++                                      {
++                                              if (p > addr)
++                                                      --p;
+                                               *delimptr = p;
++                                      }
+                                       CurEnv->e_to = saveto;
+                                       return NULL;
+                               }
+ 
+                               /* squirrel it away */
++#if !ALLOW_255
++                              if ((char) c == (char) -1 && !tTd(82, 101))
++                                      c &= 0x7f;
++#endif /* !ALLOW_255 */
+                               *q++ = c;
+                       }
+ 
+                       /* read a new input character */
+-                      c = *p++;
++                      c = (*p++) & 0x00ff;
+                       if (c == '\0')
+                       {
+                               /* diagnose and patch up bad syntax */
+@@ -801,6 +810,9 @@ prescan(addr, delim, pvpbuf, pvpbsize, d
+                               }
+                               else if (c != '!' || state == QST)
+                               {
++                                      /* see if there is room */
++                                      if (q >= &pvpbuf[pvpbsize - 5])
++                                              goto addrtoolong;
+                                       *q++ = '\\';
+                                       continue;
+                               }
+@@ -885,6 +897,9 @@ prescan(addr, delim, pvpbuf, pvpbsize, d
+               /* new token */
+               if (tok != q)
+               {
++                      /* see if there is room */
++                      if (q >= &pvpbuf[pvpbsize - 5])
++                              goto addrtoolong;
+                       *q++ = '\0';
+                       if (tTd(22, 36))
+                       {
diff -r 417266fac66f -r 6fb117699f08 mail/sendmail811/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/sendmail811/patches/patch-ai Thu Sep 18 17:10:35 2003 +0000
@@ -0,0 +1,9 @@
+$NetBSD: patch-ai,v 1.1 2003/09/18 17:10:40 taca Exp $
+
+--- sendmail/version.c.orig    2003-09-19 00:49:40.000000000 +0900
++++ sendmail/version.c
+@@ -17,3 +17,3 @@ static char Wid[] = "@(#)$Id: version.c,
+ #endif /* ! lint */
+ 
+-char  Version[] = "8.11.6+3.4W";
++char  Version[] = "8.11.6p3+3.4W";



Home | Main Index | Thread Index | Old Index