diff options
Diffstat (limited to 'nss/group.c')
-rw-r--r-- | nss/group.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nss/group.c b/nss/group.c index e100cf6..5a64ca5 100644 --- a/nss/group.c +++ b/nss/group.c @@ -54,8 +54,10 @@ static nss_status_t read_gids( int32_t res=(int32_t)NSLCD_RESULT_BEGIN; int32_t tmpint32,tmp2int32,tmp3int32; gid_t gid; +#ifdef NSS_FLAVOUR_GLIBC gid_t *newgroups; long int newsize; +#endif /* NSS_FLAVOUR_GLIBC */ /* loop over results */ while (res==(int32_t)NSLCD_RESULT_BEGIN) { @@ -275,6 +277,9 @@ static nss_status_t _xnss_ldap_getgrgid_r(nss_backend_t UNUSED(*be),void *args) return status; } +/* thread-local file pointer to an ongoing request */ +static __thread TFILE *grentfp; + static nss_status_t _xnss_ldap_setgrent(nss_backend_t UNUSED(*be),void UNUSED(*args)) { NSS_SETENT(grentfp); |