On 05/23/17 08:24, I. Schuchardt wrote: > hi folks > > i testing akpop3d on openbsd 6.1 (amd64 and i386). > > with "akpop3d -d" starts the deamon und opening the port 110 on my machine. > so i can check > the pop3 with telnet on port 110: > fixed yesterday in -current, ok for the same diff for 6.1 ? Cheers Giovanni
> ---snipp--- > ~% telnet my_machine 110 > Trying 1.2.3.4... > Connected to my_machine. > Escape character is '^]'. > +OK > user foo > +OK > pass bar > Connection closed by foreign host. > ---snipp--- > > > after this.. there is a core-dump-file "akpop3d.core" in "/" - and no other > logging-information. > > > thanks, > ingolf >
Index: Makefile =================================================================== RCS file: /var/cvs/ports/mail/akpop3d/Makefile,v retrieving revision 1.11 diff -u -p -r1.11 Makefile --- Makefile 10 Sep 2016 13:03:42 -0000 1.11 +++ Makefile 23 May 2017 07:22:13 -0000 @@ -3,7 +3,7 @@ COMMENT= small and secure POP3 daemon DISTNAME= akpop3d-0.7.7 -REVISION = 2 +REVISION = 3 CATEGORIES= mail HOMEPAGE= http://www.synflood.at/akpop3d.html @@ -16,6 +16,7 @@ MASTER_SITES= http://www.synflood.at/akp EXTRACT_SUFX= .tar.bz2 CONFIGURE_STYLE=gnu +CONFIGURE_ARGS=--with-mysql=no NO_TEST= Yes Index: patches/patch-authenticate_c =================================================================== RCS file: /var/cvs/ports/mail/akpop3d/patches/patch-authenticate_c,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 patch-authenticate_c --- patches/patch-authenticate_c 8 Nov 2004 21:57:05 -0000 1.1.1.1 +++ patches/patch-authenticate_c 23 May 2017 07:22:13 -0000 @@ -1,6 +1,7 @@ $OpenBSD: patch-authenticate_c,v 1.1.1.1 2004/11/08 21:57:05 naddy Exp $ ---- authenticate.c.orig Sun Aug 17 19:44:55 2003 -+++ authenticate.c Mon Nov 8 22:49:53 2004 +Index: authenticate.c +--- authenticate.c.orig ++++ authenticate.c @@ -25,6 +25,9 @@ #include "strlcpy.h" #include "mysql.h" @@ -11,7 +12,7 @@ $OpenBSD: patch-authenticate_c,v 1.1.1.1 extern const char * authfile; char real_username[MAXLINE+1]; char real_maildrop[MAXLINE+1]; -@@ -104,7 +107,7 @@ static int user_in_file(char * user, cha +@@ -104,7 +107,7 @@ static int user_in_file(char * user, char * path) { static int is_user_allowed(char * user) { int allow, deny; @@ -20,7 +21,7 @@ $OpenBSD: patch-authenticate_c,v 1.1.1.1 case 0: allow = 0; break; -@@ -115,7 +118,7 @@ static int is_user_allowed(char * user) +@@ -115,7 +118,7 @@ static int is_user_allowed(char * user) { return 0; } @@ -29,7 +30,7 @@ $OpenBSD: patch-authenticate_c,v 1.1.1.1 case 0: deny = 0; break; -@@ -322,7 +325,7 @@ int authenticate(char * username, char * +@@ -322,7 +325,7 @@ int authenticate(char * username, char * password) { memset(pass,0,sizeof(pass)); strlcpy(pass,password,len+1); @@ -38,3 +39,12 @@ $OpenBSD: patch-authenticate_c,v 1.1.1.1 if (0!=use_pop3_allow_deny && 0==is_user_allowed(user)) { return 0; } +@@ -335,7 +338,7 @@ int authenticate(char * username, char * password) { + } + + #ifndef HAVE_LIBMYSQLCLIENT +- u = getpwnam(user); ++ u = getpwnam_shadow(user); + #else + u = getMpwnam( user ); /* getMpwnam first checks getpwnam() */ + #endif /* HAVE_LIBMYSQLCLIENT */ Index: pkg/PLIST =================================================================== RCS file: /var/cvs/ports/mail/akpop3d/pkg/PLIST,v retrieving revision 1.2 diff -u -p -r1.2 PLIST --- pkg/PLIST 14 Dec 2005 06:02:09 -0000 1.2 +++ pkg/PLIST 23 May 2017 07:22:13 -0000 @@ -1,4 +1,4 @@ @comment $OpenBSD: PLIST,v 1.2 2005/12/14 06:02:09 jolan Exp $ @newgroup _akpop3d:555 @man man/man8/akpop3d.8 -sbin/akpop3d +@bin sbin/akpop3d