diff options
author | krion <krion@FreeBSD.org> | 2005-04-21 02:24:08 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2005-04-21 02:24:08 +0800 |
commit | 646957842b043fab9a1c48863f9bc6c10cef4ac1 (patch) | |
tree | bf1cb713d189790408f29109fafeb490975cee3b /mail | |
parent | 90c3f8731ab85ceb247435fb95022a3c67cd09b5 (diff) | |
download | freebsd-ports-gnome-646957842b043fab9a1c48863f9bc6c10cef4ac1.tar.gz freebsd-ports-gnome-646957842b043fab9a1c48863f9bc6c10cef4ac1.tar.zst freebsd-ports-gnome-646957842b043fab9a1c48863f9bc6c10cef4ac1.zip |
Do not reject files like /etc/group etc as input files.
Submitted by: Jan-Peter Koopmann <Jan-Peter.Koopmann at seceidos.de>
Patched by: Philip Hazel <ph10 at cus dot cam.ac.uk>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/exim/Makefile | 2 | ||||
-rw-r--r-- | mail/exim/files/patch-src_smtp__in.c | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile index 47f5b23f9fd8..1bf96df08038 100644 --- a/mail/exim/Makefile +++ b/mail/exim/Makefile @@ -7,7 +7,7 @@ PORTNAME= exim PORTVERSION?= ${EXIM_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_EXIM:S/$/:exim/} MASTER_SITE_SUBDIR= exim4/:exim diff --git a/mail/exim/files/patch-src_smtp__in.c b/mail/exim/files/patch-src_smtp__in.c new file mode 100644 index 000000000000..12c5e0584c13 --- /dev/null +++ b/mail/exim/files/patch-src_smtp__in.c @@ -0,0 +1,22 @@ + +$FreeBSD$ + +--- src/smtp_in.c.orig ++++ src/smtp_in.c +@@ -1610,6 +1610,8 @@ + &tzero) > 0) + { + int rc = read(fileno(smtp_in), smtp_inbuffer, in_buffer_size); ++ if (rc > 0) ++ { + if (rc > 150) rc = 150; + smtp_inbuffer[rc] = 0; + log_write(0, LOG_MAIN|LOG_REJECT, "SMTP protocol violation: " +@@ -1618,6 +1620,7 @@ + string_printing(smtp_inbuffer)); + smtp_printf("554 SMTP synchronization error\r\n"); + return FALSE; ++ } + } + } + |