NGROUPS_MAX on Linux
Tim Hockin
thockin at sun.com
Fri Feb 20 17:29:47 EST 2004
On Fri, Feb 20, 2004 at 02:36:18PM +1100, Darren Tucker wrote:
> Ben Lindstrom wrote:
> >Other than a few stylist things... It looks more correct than the other
> >patch in bugzilla. Not done any compile tests, yet.
>
> I just added this to the bug but since I didn't know if Tim would see it:
>
> >diff -u -u -r1.42 uidswap.c
> >+ saved_egroups = xrealloc(saved_egroups,
> >+ saved_egroupslen * sizeof(*saved_egroups));
>
> I get a fatal here during authentication:
> debug1: temporarily_use_uid: 500/500 (e=0/0)
> xrealloc: zero size
hrrm, simple enough to test for, I guess.
if (saved_egroupslen > 0)
...
I don't have an answer for why getgrouplist() with a 1 element 'fake' array
barfs on Linux, either.
--
Tim Hockin
Sun Microsystems, Linux Software Engineering
thockin at sun.com
All opinions are my own, not Sun's
More information about the openssh-unix-dev
mailing list