[collectd] exec patch - alternative

Florian Forster octo at verplant.org
Tue Feb 19 23:09:39 CET 2008

Hi Peter,

On Tue, Feb 19, 2008 at 11:35:44AM +0100, Peter Holik wrote:
> Also setgroups fixes my problem

I've taken your code and changed it a bit so that both, `gid' and
`egid', are in the list of supplementary groups and that this is only
done if `getuid () == 0'. Does this still fix your problem?

I _was_ thinking about calling `getgroups' first to see if the (e)gid
are in the list already and then possibly adding them. I didn't do that
I frankly I don't recall why. Maybe I'll add that tomorrow.

Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080219/332784e2/attachment.pgp 

More information about the collectd mailing list