NGROUPS_MAX on Linux

Ben Lindstrom mouring at etoh.eviladmin.org
Fri Feb 20 14:47:15 EST 2004



On Fri, 20 Feb 2004, 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 stared at that code for a while before I saw your message.  I would have
used sizeof(gid_t *) myself, but I was unsure if it was anything major.

> I get a fatal here during authentication:
> debug1: temporarily_use_uid: 500/500 (e=0/0)
> xrealloc: zero size
>
What is the value of saved_egroupslen?

- Ben




More information about the openssh-unix-dev mailing list