Closed faxm0dem closed 7 years ago
Trying to solve this with my limited Cskills.
I'm seeing this error for groups
with the following sizes (according to getent group <gid> | wc -c
): 875, 726, 1004, ... . Looking at the code, I see bufsize
which on my system seems to be 1024
: shouldn't that be enough for these groups?
I guess the solution would be to have a loop reallocating the buffer in case if (errno == ERANGE)
As a quick workaround, I'd try upping the buffer size to something like 4096. That's easier and less costy than reallocation would be.
you mean by ignoring _SC_GETPW_R_SIZE_MAX
completely?
Yes.
getent module removed from the incubator (and merged into syslog-ng upstream).
I'm stumbling on the following error message for large groups:
Found some references: