svn commit: r394432 - in head/mail/opensmtpd: . files
Ashish SHUKLA
ashish at FreeBSD.org
Sun Aug 16 23:25:20 UTC 2015
Author: ashish
Date: Sun Aug 16 23:25:19 2015
New Revision: 394432
URL: https://svnweb.freebsd.org/changeset/ports/394432
Log:
- Fix typos in the patch committed in r394424
Reported by: adamw
Modified:
head/mail/opensmtpd/Makefile
head/mail/opensmtpd/files/patch-usernamelen
Modified: head/mail/opensmtpd/Makefile
==============================================================================
--- head/mail/opensmtpd/Makefile Sun Aug 16 22:32:20 2015 (r394431)
+++ head/mail/opensmtpd/Makefile Sun Aug 16 23:25:19 2015 (r394432)
@@ -3,7 +3,7 @@
PORTNAME= opensmtpd
PORTVERSION= 5.7.1
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= http://www.opensmtpd.org/archives/ \
Modified: head/mail/opensmtpd/files/patch-usernamelen
==============================================================================
--- head/mail/opensmtpd/files/patch-usernamelen Sun Aug 16 22:32:20 2015 (r394431)
+++ head/mail/opensmtpd/files/patch-usernamelen Sun Aug 16 23:25:19 2015 (r394432)
@@ -6,7 +6,7 @@ index 3a0ca2a..404ee50 100644
SF_BADINPUT = 0x0080,
SF_FILTERCONN = 0x0100,
SF_FILTERDATA = 0x0200,
-+ SF_USERTOLONG = 0x0400,
++ SF_USERTOOLONG = 0x0400,
};
enum message_flags {
@@ -24,11 +24,11 @@ index 3a0ca2a..404ee50 100644
s = tree_xpop(&wait_parent_auth, reqid);
strnvis(user, s->username, sizeof user, VIS_WHITE | VIS_SAFE);
+
-+ if (s->flags & SF_USERTOLONG) {
++ if (s->flags & SF_USERTOOLONG) {
+ log_info("smtp-in: sesson %016"PRIx64
-+ ": auth failed because username to long",
++ ": auth failed because username too long",
+ s->id);
-+ s->flags &= (~SF_USERTOLONG);
++ s->flags &= (~SF_USERTOOLONG);
+ success = LKA_PERMFAIL;
+ }
+
@@ -40,7 +40,7 @@ index 3a0ca2a..404ee50 100644
if (strlcpy(s->username, user, sizeof(s->username))
>= sizeof(s->username))
- goto abort;
-+ s->flags |= SF_USERTOLONG;
++ s->flags |= SF_USERTOOLONG;
pass = memchr(user, '\0', len - (user - buf));
if (pass == NULL || pass >= buf + len - 2)
@@ -55,7 +55,7 @@ index 3a0ca2a..404ee50 100644
goto abort;
+ if (strlcpy(s->username, buf, sizeof(s->username))
+ >= sizeof(s->username))
-+ s->flags |= SF_USERTOLONG;
++ s->flags |= SF_USERTOOLONG;
smtp_enter_state(s, STATE_AUTH_PASSWORD);
smtp_reply(s, "334 UGFzc3dvcmQ6");
More information about the svn-ports-all
mailing list