diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2002-06-14 09:38:41 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2002-06-14 09:38:41 +0000 |
commit | e756b17c466f0cc78d0a785ef6650d8684e213ba (patch) | |
tree | 04a6148aad2c1d113408fb3f546d0cb475b90a8e | |
parent | a8ffa62f35fc7996dd10749d74e645231c94863e (diff) | |
download | ports-e756b17c466f0cc78d0a785ef6650d8684e213ba.tar.gz ports-e756b17c466f0cc78d0a785ef6650d8684e213ba.zip |
Fix a segfault when authenticating against the system passwd file:
there's little sense in passing an integer port number to a string
comparison routine :)
Bump PORTREVISION.
Reported by: Rudy <rudy@tzone.it>
Notes
Notes:
svn path=/head/; revision=61256
-rw-r--r-- | mail/vpopmail-devel/Makefile | 1 | ||||
-rw-r--r-- | mail/vpopmail-devel/files/patch-vchkpw.c | 11 | ||||
-rw-r--r-- | mail/vpopmail/Makefile | 1 | ||||
-rw-r--r-- | mail/vpopmail/files/patch-vchkpw.c | 11 |
4 files changed, 24 insertions, 0 deletions
diff --git a/mail/vpopmail-devel/Makefile b/mail/vpopmail-devel/Makefile index 69c8278c34ac..16563c078a6c 100644 --- a/mail/vpopmail-devel/Makefile +++ b/mail/vpopmail-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= vpopmail PORTVERSION= 5.3.6 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.inter7.com/devel/ diff --git a/mail/vpopmail-devel/files/patch-vchkpw.c b/mail/vpopmail-devel/files/patch-vchkpw.c new file mode 100644 index 000000000000..7fb12ce26c91 --- /dev/null +++ b/mail/vpopmail-devel/files/patch-vchkpw.c @@ -0,0 +1,11 @@ +--- vchkpw.c.orig Thu Jun 13 15:05:53 2002 ++++ vchkpw.c Thu Jun 13 15:06:16 2002 +@@ -556,7 +556,7 @@ + pw_gid = pw->pw_gid; + pw_dir = pw->pw_dir; + #ifdef POP_AUTH_OPEN_RELAY +- if ( (strcmp(LocalPort, "25") != 0) && (strcmp(LocalPort, "465") != 0)) { ++ if ( (LocalPort != 25) && (LocalPort != 465)) { + open_smtp_relay(); + } + #endif diff --git a/mail/vpopmail/Makefile b/mail/vpopmail/Makefile index 69c8278c34ac..16563c078a6c 100644 --- a/mail/vpopmail/Makefile +++ b/mail/vpopmail/Makefile @@ -7,6 +7,7 @@ PORTNAME= vpopmail PORTVERSION= 5.3.6 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.inter7.com/devel/ diff --git a/mail/vpopmail/files/patch-vchkpw.c b/mail/vpopmail/files/patch-vchkpw.c new file mode 100644 index 000000000000..7fb12ce26c91 --- /dev/null +++ b/mail/vpopmail/files/patch-vchkpw.c @@ -0,0 +1,11 @@ +--- vchkpw.c.orig Thu Jun 13 15:05:53 2002 ++++ vchkpw.c Thu Jun 13 15:06:16 2002 +@@ -556,7 +556,7 @@ + pw_gid = pw->pw_gid; + pw_dir = pw->pw_dir; + #ifdef POP_AUTH_OPEN_RELAY +- if ( (strcmp(LocalPort, "25") != 0) && (strcmp(LocalPort, "465") != 0)) { ++ if ( (LocalPort != 25) && (LocalPort != 465)) { + open_smtp_relay(); + } + #endif |