Comment 3 for bug 933943

Revision history for this message
In , Alec Warner (antarus) wrote :

Created attachment 146
Call getgrnam_r repeatedly if we receive ERANGE

Some large enterprises have huge groups that need to be resolved.

Example: I have a group that needs a 2MB buffer ;)

antarus@goats2 /tmp $ ./a.out
Trying 4096
Trying 8192
Trying 16384
Trying 32768
Trying 65536
Trying 131072
Trying 262144
Trying 524288
Trying 1048576
Trying 2097152