diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2009-06-20 00:54:57 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2009-06-20 00:54:57 +0000 |
commit | 40e33db11b25c0e3d473f8f8fbfaa1fbc6c30a8f (patch) | |
tree | 0f861fa2dc126567119edab337094cf9949c65b8 /sys/fs/nfsclient/nfs_clport.c | |
parent | 5bbf1e21517ad8739fe410118f1267a25238c20a (diff) | |
download | FreeBSD-src-40e33db11b25c0e3d473f8f8fbfaa1fbc6c30a8f.zip FreeBSD-src-40e33db11b25c0e3d473f8f8fbfaa1fbc6c30a8f.tar.gz |
Change the size of the nfsc_groups[] array in the experimental nfs
client to RPCAUTH_UNIXGIDS + 1 (17), since that is what can go on
the wire for AUTH_SYS authentication.
Reviewed by: brooks
Approved by: kib (mentor)
Diffstat (limited to 'sys/fs/nfsclient/nfs_clport.c')
-rw-r--r-- | sys/fs/nfsclient/nfs_clport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c index 5b747c7..6453bcf7 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, XU_NGROUPS); + nfscr->nfsc_ngroups = MIN(cr->cr_ngroups, RPCAUTH_UNIXGIDS + 1); for (i = 0; i < nfscr->nfsc_ngroups; i++) nfscr->nfsc_groups[i] = cr->cr_groups[i]; } |