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>
This commit is contained in:
Kirill Ponomarev 2005-04-20 18:24:08 +00:00
parent 91e900b2d6
commit 29666178ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133802
2 changed files with 23 additions and 1 deletions

View file

@ -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

View file

@ -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;
+ }
}
}