From 611dc583a05914f81c97c165163bcce021b0dfac Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 8 Oct 2010 11:56:56 +0000 Subject: re-introduce {set,get,end}**ent() file handle in Solaris code path and some other miscellaneous small fixes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1246 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/group.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nss/group.c') 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); -- cgit v1.2.3