Replace RPCAUTH_UNIXGIDS with NFS_MAXGRPS so that nfscbd.c will build.

Approved by:	kib (mentor)
This commit is contained in:
Rick Macklem 2009-06-20 17:11:07 +00:00
parent e23637d17b
commit 65cc6600c5
2 changed files with 3 additions and 3 deletions

View File

@ -405,12 +405,12 @@ typedef struct {
/* /*
* Store uid, gid creds that were used when the stateid was acquired. * Store uid, gid creds that were used when the stateid was acquired.
* The RPC layer allows RPCAUTH_UNIXGIDS + 1 groups to go out on the wire, * The RPC layer allows NFS_MAXGRPS + 1 groups to go out on the wire,
* so that's how many gets stored here. * so that's how many gets stored here.
*/ */
struct nfscred { struct nfscred {
uid_t nfsc_uid; uid_t nfsc_uid;
gid_t nfsc_groups[RPCAUTH_UNIXGIDS + 1]; gid_t nfsc_groups[NFS_MAXGRPS + 1];
int nfsc_ngroups; int nfsc_ngroups;
}; };

View File

@ -979,7 +979,7 @@ newnfs_copyincred(struct ucred *cr, struct nfscred *nfscr)
int i; int i;
nfscr->nfsc_uid = cr->cr_uid; nfscr->nfsc_uid = cr->cr_uid;
nfscr->nfsc_ngroups = MIN(cr->cr_ngroups, RPCAUTH_UNIXGIDS + 1); nfscr->nfsc_ngroups = MIN(cr->cr_ngroups, NFS_MAXGRPS + 1);
for (i = 0; i < nfscr->nfsc_ngroups; i++) for (i = 0; i < nfscr->nfsc_ngroups; i++)
nfscr->nfsc_groups[i] = cr->cr_groups[i]; nfscr->nfsc_groups[i] = cr->cr_groups[i];
} }