diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2009-06-20 17:11:07 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2009-06-20 17:11:07 +0000 |
commit | 7dbb188309c3e49d03f3cc123417b010dc0c81da (patch) | |
tree | 8226c518996383d322748c9226e91313e4eb6ee4 /sys/fs | |
parent | 4f053b746068039dffb792ad21ebb9873a095484 (diff) | |
download | FreeBSD-src-7dbb188309c3e49d03f3cc123417b010dc0c81da.zip FreeBSD-src-7dbb188309c3e49d03f3cc123417b010dc0c81da.tar.gz |
Replace RPCAUTH_UNIXGIDS with NFS_MAXGRPS so that nfscbd.c will build.
Approved by: kib (mentor)
Diffstat (limited to 'sys/fs')
-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 d02c754..0325d3d 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 6453bcf7..bed6070 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]; } |