From: Franck A. <fr...@ne...> - 2007-12-15 01:42:09
|
hi, I can't bootstrap the current repository, fails on compiling eif_group_in_list because my Linux does not have NGROUPS_MAX (or not in the expected place). It seems NGROUPS_MAX was changed to 65000 from 32 between Linux kernel releases so the hardcoded NGROUPS_MAX technique not very reliable as the value depend on C library on the compiling machine and real value on kernel. I guess the clean way is to malloc () the structure with the value returned by getgroups (0, _) which returns the actual number of items without touching the output array. Some POSIX page recommends a sysconf call but the former seems simpler. |