Use an array of size NGROUP_MAX for the getgroups() call instead of NGRP.
authorHartmut Brandt <harti@FreeBSD.org>
Thu, 14 Jun 2007 20:07:35 +0000 (20:07 +0000)
committerHartmut Brandt <harti@FreeBSD.org>
Thu, 14 Jun 2007 20:07:35 +0000 (20:07 +0000)
commite62e610b7ded2cb4b8fa7d889f3046fed0f7cbf4
tree508cff6fe4b1e4fed7e9b6d7a150c1bf7c6af2e2
parent513edbb8b0956d316e547d81060e0cc023c4a4d3
Use an array of size NGROUP_MAX for the getgroups() call instead of NGRP.
When NGROUP_MAX is larger than NGRP the call used to fail. Now the call
succeedes, but only the first NGRP groups are actually used for authentication.
lib/libc/rpc/auth_unix.c