SAMBA 3.6.3

Brandon Allbery allbery.b at gmail.com
Mon May 21 14:45:00 PDT 2012


On Mon, May 21, 2012 at 5:40 PM, O'Dell James <jim at fpr.com> 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                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120521/0197fac1/attachment.html>


More information about the macports-users mailing list