mail/sendmail: Fix aliases file continuation lines

PR: 259147
This commit is contained in:
Dirk Meyer 2021-10-17 22:59:23 +02:00
parent 93566bfca3
commit dec0174b5b
2 changed files with 18 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= sendmail PORTNAME= sendmail
PORTVERSION= 8.17.1 PORTVERSION= 8.17.1
PORTREVISION= 0 PORTREVISION= 1
CATEGORIES= mail CATEGORIES= mail
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/
DISTNAME= ${PORTNAME}.${PORTVERSION} DISTNAME= ${PORTNAME}.${PORTVERSION}

View file

@ -0,0 +1,17 @@
--- sendmail/alias.c.orig 2021-06-09 08:27:53 UTC
+++ sendmail/alias.c
@@ -817,10 +817,13 @@ readaliases(map, af, announcestats, logstats)
(void) sm_io_ungetc(af, SM_TIME_DEFAULT, c);
if (c != ' ' && c != '\t')
break;
+#if _FFR_8BITENVADDR
+ syserr("554 5.3.5 Continuation line currently not supported for USE_EAI nor _FFR_EIGHT_BIT_ADDR_OK");
+#endif
/* read continuation line */
if (sm_io_fgets(af, SM_TIME_DEFAULT, p,
- sizeof(line) - (p-line)) < 0)
+ sizeof(lbuf) - (p-line)) < 0)
break;
LineNumber++;