Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108569753
D46910.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
353 B
Referenced Files
None
Subscribers
None
D46910.diff
View Options
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -2119,8 +2119,7 @@
mac_cred_init(cr);
#endif
cr->cr_groups = cr->cr_smallgroups;
- cr->cr_agroups =
- sizeof(cr->cr_smallgroups) / sizeof(cr->cr_smallgroups[0]);
+ cr->cr_agroups = nitems(cr->cr_smallgroups);
return (cr);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 11:26 AM (4 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15463482
Default Alt Text
D46910.diff (353 B)
Attached To
Mode
D46910: cred: crget(): Compute initial 'cr_agroups' with nitems()
Attached
Detach File
Event Timeline
Log In to Comment