In the file source/passdb/util_unixsids.c, this function calls getgrnam. Shouldn't this be sys_getgrnam? The equiv user function lookup_unix_user_name calls getpwnam_alloc which then calls sys_getpwnam.