diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-08 13:56:56 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-08 13:56:56 +0200 |
commit | 611dc583a05914f81c97c165163bcce021b0dfac (patch) | |
tree | 7136faabebdef16fc8690f1fee37d209a53fa7dd /nss/group.c | |
parent | 5afa471c1b514d82da2fde66fbed699a2e2862fa (diff) |
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
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); |