mirror of
https://git.freebsd.org/ports.git
synced 2025-05-16 17:21:49 -04:00
- 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
11 lines
292 B
C
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;
|