Bug 5746 - vpopmail 5.2.1 has a major flaw (patch inside)
Bug#: 5746 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: nick@capital-internet.net Reported By: kryptolus@gmail.com
Component: Ebuilds
URL: 
Summary: vpopmail 5.2.1 has a major flaw (patch inside)
Keywords:  
Status Whiteboard: 
Opened: 2002-07-29 15:19 0000
Description:   Opened: 2002-07-29 15:19 0000
All the work was done by Vladimir Berezniker (vladimir@berezniker.com).
I am just entering this bug report on his behalf.

vpopmail 5.2.1 has a bug where the login string is null-terminated in the wrong
location causing login failure in a lot of cases. The problem was narrowed down
to the parse_email function and looking through the changelog for newer
(development) versions of vpopmail, you can see that this bug was already fixed
in later versions. Instead of recreating the patch, Vladimir simply backported
the parse_email function from the latest development version to 5.2.1

Now all the logins on our system work properly.

Attached is the diff for the ebuild and diff to vpopmail.
(the diff would have to be given an appropriate name and referenced properly in
the ebuil)

------- Comment #1 From Vadim Berezniker 2002-07-29 15:21:50 0000 -------
Created an attachment (id=2670) [details]
ebuild patch

This patch should be applied to vpopmail-5.2.1-r2.ebuild

------- Comment #2 From Vadim Berezniker 2002-07-29 15:23:13 0000 -------
Created an attachment (id=2671) [details]
vpopmail diff

This patch should be placed in the files/ directory for vpopmail package.
The ebuild should be corrected to reference whatever name this file gets.

------- Comment #3 From Nick Hadaway 2002-07-30 08:32:57 0000 -------
The patch and fixed ebuild are now in portage.  Thanks for the patches!

------- Comment #4 From Vadim Berezniker 2002-07-30 15:16:20 0000 -------
My brother is gonna be pissed. 
The credit was supposed to go to him :-P
Now he's gonna kill me.