Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149136885
D52256.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
642 B
Referenced Files
None
Subscribers
None
D52256.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
Mon, Mar 23, 12:14 PM (6 h, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30184941
Default Alt Text
D52256.diff (642 B)
Attached To
Mode
D52256: nfscl: Restore sending the effective GID to the server
Attached
Detach File
Event Timeline
Log In to Comment