[distcc] setgroups failed

Wayne Davison wayned at samba.org
Tue Oct 14 17:20:29 GMT 2003


On Tue, Oct 14, 2003 at 12:55:24PM +1000, Martin Pool wrote:
> What did Apple change?

This is something we recently fixed in rsync:  the setgroups() call
doesn't always allow a NULL argument.  We bypassed the problem by
calling setgroups() with the single gid as our arg:

    if (setgroups(1, &gid)) {

That would work in the distcc code as well.  I also moved the call to
setgid() prior to the setgroups() code, just because it seemed like a
better order of events to me (in the rsync code).

..wayne..



More information about the distcc mailing list