Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115745426
D46920.id148080.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
864 B
Referenced Files
None
Subscribers
None
D46920.id148080.diff
View Options
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -3610,7 +3610,6 @@
parsecred(char *namelist, struct expcred *cr)
{
char *name;
- int inpos;
char *names;
struct passwd *pw;
struct group *gr;
@@ -3652,23 +3651,12 @@
ngroups = NGROUPS_MAX + 1;
}
- /*
- * Compress out duplicate.
- */
- if (ngroups > 1 && groups[0] == groups[1]) {
- ngroups--;
- inpos = 2;
- } else {
- inpos = 1;
- }
if (ngroups > NGROUPS_MAX)
ngroups = NGROUPS_MAX;
if (ngroups > SMALLNGROUPS)
cr->cr_groups = malloc(ngroups * sizeof(gid_t));
cr->cr_ngroups = ngroups;
- cr->cr_groups[0] = groups[0];
- memcpy(&cr->cr_groups[1], &groups[inpos], (ngroups - 1) *
- sizeof(gid_t));
+ memcpy(cr->cr_groups, groups, ngroups * sizeof(gid_t));
return;
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 29, 1:23 AM (10 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17833090
Default Alt Text
D46920.id148080.diff (864 B)
Attached To
Mode
D46920: mountd(8): parsecred(): Remove "duplicate compression"
Attached
Detach File
Event Timeline
Log In to Comment