4 Jul
2012
4 Jul
'12
19:04
https://bugzilla.novell.com/show_bug.cgi?id=740110
https://bugzilla.novell.com/show_bug.cgi?id=740110#c21
--- Comment #21 from Andreas Jaeger
From
/* This value is a guaranteed minimum maximum. The current maximum can be got from `sysconf'. */
#ifndef NGROUPS_MAX # define NGROUPS_MAX 8 #endif #endif /* bits/posix1_lim.h */ You don't want 8! Instead of malloc, you can use: long ngroups_max = sysconf(_SC_NGROUPS_MAX); gid_t gid = 0, oegid = 0, groups[ngroups_max+1]; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.