Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177892236
D52256.1795530302.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
642 B
Referenced Files
None
Subscribers
None
D52256.1795530302.diff
View Options
diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c
--- a/sys/fs/nfsclient/nfs_clport.c
+++ b/sys/fs/nfsclient/nfs_clport.c
@@ -1098,9 +1098,10 @@
KASSERT(cr->cr_ngroups >= 0,
("newnfs_copyincred: negative cr_ngroups"));
nfscr->nfsc_uid = cr->cr_uid;
- 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];
+ nfscr->nfsc_ngroups = MIN(cr->cr_ngroups + 1, NFS_MAXGRPS + 1);
+ nfscr->nfsc_groups[0] = cr->cr_gid;
+ for (i = 1; i < nfscr->nfsc_ngroups; i++)
+ nfscr->nfsc_groups[i] = cr->cr_groups[i - 1];
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 24, 2:25 PM (23 m, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41938322
Default Alt Text
D52256.1795530302.diff (642 B)
Attached To
Mode
D52256: nfscl: Restore sending the effective GID to the server
Attached
Detach File
Event Timeline