ports/net/nss_ldap/files/patch-ldap-grp.c
Dag-Erling Smørgrav 4dcfac20dd Add patches for a couple of issues I found while researching #190055:
- Use GID_MAX instead of LONG_MAX, they are not the same on 64-bit.
 - Correctly restore the egid after reading the krb5 credential cache.

MFH:		2014Q4
2014-11-13 21:46:11 +00:00

11 lines
292 B
C

--- ldap-grp.c.orig
+++ ldap-grp.c
@@ -687,7 +687,7 @@
gid = strtoul (values[0], (char **) NULL, 10);
ldap_value_free (values);
- if (gid == LONG_MAX && errno == ERANGE)
+ if (gid == GID_MAX && errno == ERANGE)
{
/* invalid group, skip it */
return NSS_NOTFOUND;