Page MenuHomeFreeBSD

D46910.diff
No OneTemporary

D46910.diff

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
@@ -2041,8 +2041,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

Mime Type
text/plain
Expires
Sat, Oct 5, 3:45 PM (18 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13626065
Default Alt Text
D46910.diff (353 B)

Event Timeline