Fix authentication, needs getpwnam_shadow(3).
breakage reported by Anthony Campbell
This commit is contained in:
parent
9eaaa3014d
commit
a69f53c580
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.209 2016/04/12 06:45:36 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.210 2016/05/22 15:44:23 ajacoutot Exp $
|
||||
|
||||
COMMENT-main= Common Unix Printing System
|
||||
COMMENT-libs= CUPS libraries and headers
|
||||
@ -10,8 +10,8 @@ EXTRACT_SUFX= .tar.bz2
|
||||
PKGNAME-main= cups-${VERSION}
|
||||
PKGNAME-libs= cups-libs-${VERSION}
|
||||
|
||||
REVISION-main= 0
|
||||
REVISION-libs= 0
|
||||
REVISION-main= 1
|
||||
REVISION-libs= 1
|
||||
|
||||
CATEGORIES= print sysutils
|
||||
|
||||
|
12
print/cups/patches/patch-scheduler_auth_c
Normal file
12
print/cups/patches/patch-scheduler_auth_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-scheduler_auth_c,v 1.6 2016/05/22 15:44:23 ajacoutot Exp $
|
||||
--- scheduler/auth.c.orig Sun May 22 17:34:17 2016
|
||||
+++ scheduler/auth.c Sun May 22 17:35:08 2016
|
||||
@@ -651,7 +651,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I - Client conn
|
||||
# endif /* HAVE_SHADOW_H */
|
||||
|
||||
|
||||
- pw = getpwnam(username); /* Get the current password */
|
||||
+ pw = getpwnam_shadow(username); /* Get the current password */
|
||||
endpwent(); /* Close the password file */
|
||||
|
||||
if (!pw)
|
Loading…
x
Reference in New Issue
Block a user