diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-05-09 23:59:13 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-05-09 23:59:13 +0200 |
commit | 1a939483cef054ab51488c123538237290a7448e (patch) | |
tree | b58c0c9ee33cd5c4c8df4704ca41f45076148785 /nss/group.c | |
parent | ffa068102af3e1199075cf7b1d827900758b289a (diff) |
merge r882 from trunk
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@883 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/group.c')
-rw-r--r-- | nss/group.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nss/group.c b/nss/group.c index 33774ff..4fe0123 100644 --- a/nss/group.c +++ b/nss/group.c @@ -2,7 +2,7 @@ group.c - NSS lookup functions for group database Copyright (C) 2006 West Consulting - Copyright (C) 2006, 2007, 2008 Arthur de Jong + Copyright (C) 2006, 2007, 2008, 2009 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -130,9 +130,16 @@ enum nss_status _nss_ldap_initgroups_dyn( const char *user,gid_t skipgroup,long int *start, long int *size,gid_t **groupsp,long int limit,int *errnop) { +/* temporarily map the buffer and buflen names so the check in NSS_BYNAME + for validity of the buffer works (renaming the parameters may cause + confusion) */ +#define buffer groupsp +#define buflen limit NSS_BYNAME(NSLCD_ACTION_GROUP_BYMEMBER, user, read_gids(fp,skipgroup,start,size,groupsp,limit,errnop)); +#undef buffer +#undef buflen } /* thread-local file pointer to an ongoing request */ |