From d37939635a358cac0ec6e3a93331a066a68cdd59 Mon Sep 17 00:00:00 2001 From: Nick Hadaway Date: Tue, 30 Jul 2002 13:32:20 +0000 Subject: Added a patch submitted by Vadim Berezniker backported from the devel branch of vpopmail. Fixes some login issues. Closes bug #5746. --- net-mail/vpopmail/ChangeLog | 8 ++- net-mail/vpopmail/files/vpopmail.diff | 88 ++++++++++++++++++++++++++++++ net-mail/vpopmail/vpopmail-5.2.1-r2.ebuild | 7 ++- 3 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 net-mail/vpopmail/files/vpopmail.diff (limited to 'net-mail') diff --git a/net-mail/vpopmail/ChangeLog b/net-mail/vpopmail/ChangeLog index 51a11709423d..f3b87a9760f1 100644 --- a/net-mail/vpopmail/ChangeLog +++ b/net-mail/vpopmail/ChangeLog @@ -1,9 +1,15 @@ # ChangeLog for net-mail/vpopmail # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/ChangeLog,v 1.3 2002/07/26 11:09:41 carpaski Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/ChangeLog,v 1.4 2002/07/30 13:32:20 raker Exp $ *vpopmail-5.2.1 (24 Jul 2002) + 30 Jul 2002; Nick Hadaway + files/vpopmail.diff, vpopmail-5.2.1-r2.ebuild : + + Added a patch submitted by Vadim Berezniker backported from the devel + branch of vpopmail. Fixes some login issues. Closes bug #5746. + 26 Feb 2002; Nicholas Jones vpopmail-5.2.1-r2 : Revised -r1 submitted via consortium of Patrick Naubert and Maurizio diff --git a/net-mail/vpopmail/files/vpopmail.diff b/net-mail/vpopmail/files/vpopmail.diff new file mode 100644 index 000000000000..afa08c4b6354 --- /dev/null +++ b/net-mail/vpopmail/files/vpopmail.diff @@ -0,0 +1,88 @@ +--- vpopmail.c Sat May 18 02:25:49 2002 ++++ vb/vpopmail.c Mon Jul 29 15:06:47 2002 +@@ -1012,51 +1012,45 @@ + int buff_size; + { + int i; +- int j; +- int k; +- int found; +- +- for( i=0,j=0,found=0; found==0 && j buff_size ) n = buff_size; ++ strncpy(user, email, n); ++ user[n-1] = 0; ++ strncpy(domain, ++at, buff_size); ++ domain[buff_size-1] = 0; ++ } else { ++ strncpy(user, email, buff_size); ++ user[buff_size-1] = 0; + domain[0] = 0; +- if (email[i]!=0) { +- for(j=0;j