SAMBA 3.6.3

O'Dell James jim at fpr.com
Mon May 21 15:03:00 PDT 2012


Shoot! You're right about that. What I did is completely broken and works simply by chance.

I guess I'll have to figure out how to apply the patch.

Thanks!

Jim

On May 21, 2012, at 5:45 PM, Brandon Allbery wrote:

> 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/f4e8358e/attachment.html>


More information about the macports-users mailing list