On Mon, May 21, 2012 at 5:40 PM, O'Dell James <[email protected]> wrote:

> Has anyone else experienced problems getting the latest macports version
> of Samba working.
>
> After some poking around, I discovered that there is an OS X 10.7 patch
> lurking around that
> increases the values for MAX_NGROUPS (Or some such name in the Samba
> sources).
>
> It seems as if the OS X value of:
>
> #define _SC_NGROUPS_MAX                  4
>
> In unistd.h is not large enough to contain the complete group list.
>

If they're using that as the size, they are broken.  It's not a size, it's
the code given to sysconf() to have it return the maximum number of groups.

Rather than change the SAMBA code, I just upped the value above to 32,
> rebuilt the
> samba 3.6.3 package and all was copacetic.
>

So now invoking sysconf(_SC_NGROUPS_MAX) returns instead what
sysconf(_SC_MEMORY_PROTECTION) does?

-- 
brandon s allbery                                      [email protected]
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to