[distcc] setgroups failed
Martin Pool
mbp at samba.org
Mon Nov 17 02:05:30 GMT 2003
On 14 Oct 2003, Wayne Davison <wayned at samba.org> wrote:
> 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).
Thanks, done.
--
Martin
linux.conf.au -- Adelaide, January 2004
More information about the distcc
mailing list