diff options
author | sergei <sergei@FreeBSD.org> | 2003-10-23 18:09:43 +0800 |
---|---|---|
committer | sergei <sergei@FreeBSD.org> | 2003-10-23 18:09:43 +0800 |
commit | d55fd5f69f7ccb07980976d2f2673581a52e2734 (patch) | |
tree | 50ae81771fe7a7a4a47e93bbbb0f45ec8dad4c67 /mail/anubis | |
parent | 6381d0f4fbb5549958bab5bb0174fd3e03c1a95d (diff) | |
download | freebsd-ports-graphics-d55fd5f69f7ccb07980976d2f2673581a52e2734.tar.gz freebsd-ports-graphics-d55fd5f69f7ccb07980976d2f2673581a52e2734.tar.zst freebsd-ports-graphics-d55fd5f69f7ccb07980976d2f2673581a52e2734.zip |
- Apply vendor's security patch
- Bump PORTREVISION
Submitted by: Wojciech Polak <polak@gnu.org>
Approved by: krion (implicitly)
Diffstat (limited to 'mail/anubis')
-rw-r--r-- | mail/anubis/Makefile | 2 | ||||
-rw-r--r-- | mail/anubis/files/patch-freebsd | 38 |
2 files changed, 40 insertions, 0 deletions
diff --git a/mail/anubis/Makefile b/mail/anubis/Makefile index 65ab70ba5d6..65296b02106 100644 --- a/mail/anubis/Makefile +++ b/mail/anubis/Makefile @@ -19,6 +19,7 @@ PORTNAME= anubis PORTVERSION= 3.6.2 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -26,6 +27,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= sergei@FreeBSD.org COMMENT= Outgoing SMTP mail processor +PATCH_STRIP= -p1 USE_REINPLACE= yes USE_GETOPT_LONG= yes GNU_CONFIGURE= yes diff --git a/mail/anubis/files/patch-freebsd b/mail/anubis/files/patch-freebsd new file mode 100644 index 00000000000..42057fc495e --- /dev/null +++ b/mail/anubis/files/patch-freebsd @@ -0,0 +1,38 @@ +diff -urN anubis-3.6.2/src/net.c anubis-3.6.2-fix/src/net.c +--- anubis-3.6.2/src/net.c Wed Dec 11 15:37:56 2002 ++++ anubis-3.6.2-fix/src/net.c Thu Jun 5 23:38:49 2003 +@@ -122,6 +122,7 @@ + int sd = 0; + unsigned long inaddr; + struct sockaddr_in addr; ++ int true = 1; + + memset(&addr, 0, sizeof(addr)); + addr.sin_family = AF_INET; +@@ -153,6 +154,8 @@ + else + addr.sin_addr.s_addr = htonl(INADDR_ANY); + ++ setsockopt (sd, SOL_SOCKET, SO_REUSEADDR, &true, sizeof(true)); ++ + if (bind(sd, (struct sockaddr *)&addr, sizeof(addr))) + anubis_error(HARD, _("bind() failed: %s."), strerror(errno)); + info(VERBOSE, _("GNU Anubis bound to %s:%u"), inet_ntoa(addr.sin_addr), +diff -urN anubis-3.6.2/src/tunnel.c anubis-3.6.2-fix/src/tunnel.c +--- anubis-3.6.2/src/tunnel.c Sun Dec 8 19:04:51 2002 ++++ anubis-3.6.2-fix/src/tunnel.c Tue Mar 11 11:04:10 2003 +@@ -554,9 +554,11 @@ + ptr1 = strstr(boundary_buf, "boundary="); + if (ptr1 == 0) { + plist = plist->next; +- safe_strcpy(boundary_buf, plist->line); +- change_to_lower(boundary_buf); +- ptr1 = strstr(boundary_buf, "boundary="); ++ if (plist) { ++ safe_strcpy(boundary_buf, plist->line); ++ change_to_lower(boundary_buf); ++ ptr1 = strstr(boundary_buf, "boundary="); ++ } + } + + if (ptr1) { |