diff options
| author | Rick Macklem <rmacklem@FreeBSD.org> | 2009-06-20 17:11:07 +0000 |
|---|---|---|
| committer | Rick Macklem <rmacklem@FreeBSD.org> | 2009-06-20 17:11:07 +0000 |
| commit | 65cc6600c513831f8aa6cd18f2f08b4d4f59e564 (patch) | |
| tree | 8226c518996383d322748c9226e91313e4eb6ee4 /sys | |
| parent | e23637d17b75503c67e768102667b19df886907a (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/fs/nfs/nfs.h | 4 | ||||
| -rw-r--r-- | sys/fs/nfsclient/nfs_clport.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/nfs/nfs.h b/sys/fs/nfs/nfs.h index d02c754134c8..0325d3dbbf3b 100644 --- a/sys/fs/nfs/nfs.h +++ b/sys/fs/nfs/nfs.h @@ -405,12 +405,12 @@ typedef struct { /* * 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. */ struct nfscred { uid_t nfsc_uid; - gid_t nfsc_groups[RPCAUTH_UNIXGIDS + 1]; + gid_t nfsc_groups[NFS_MAXGRPS + 1]; int nfsc_ngroups; }; diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c index 6453bcf7afb6..bed607090ef2 100644 --- a/sys/fs/nfsclient/nfs_clport.c +++ b/sys/fs/nfsclient/nfs_clport.c @@ -979,7 +979,7 @@ newnfs_copyincred(struct ucred *cr, struct nfscred *nfscr) int i; 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++) nfscr->nfsc_groups[i] = cr->cr_groups[i]; } |
