Use getpwnam_shadow to unbreak popa3d following libc changes.
Reported and diff tested by Andreas Bartelt.
This commit is contained in:
parent
79dd13eae9
commit
c8a700863d
@ -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
|
||||
|
||||
|
12
mail/popa3d/patches/patch-auth_passwd_c
Normal file
12
mail/popa3d/patches/patch-auth_passwd_c
Normal 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user