Use getpwnam_shadow to unbreak popa3d following libc changes.

Reported and diff tested by Andreas Bartelt.
This commit is contained in:
sthen 2016-05-18 11:03:48 +00:00
parent 79dd13eae9
commit c8a700863d
2 changed files with 14 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/07/16 12:02:30 jca Exp $
# $OpenBSD: Makefile,v 1.2 2016/05/18 11:03:48 sthen Exp $
COMMENT = tiny pop3 daemon
DISTNAME = popa3d-1.0.3
REVISION = 0
CATEGORIES = mail

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-auth_passwd_c,v 1.1 2016/05/18 11:03:48 sthen Exp $
--- auth_passwd.c.orig Tue May 17 20:59:12 2016
+++ auth_passwd.c Tue May 17 20:59:19 2016
@@ -19,7 +19,7 @@ struct passwd *auth_userpass(char *user, char *pass, i
{
struct passwd *pw, *result;
- *known = (pw = getpwnam(user)) != NULL;
+ *known = (pw = getpwnam_shadow(user)) != NULL;
endpwent();
result = NULL;