summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49b54ba)
raw | patch | inline | side by side (parent: 49b54ba)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 24 Feb 2008 11:17:24 +0000 (12:17 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 25 Feb 2008 07:29:35 +0000 (08:29 +0100) |
In case that no group has been specified in the config file, egid = -1 used to
be passed to setgroups() which, obviously, is not what we want.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
be passed to setgroups() which, obviously, is not what we want.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/exec.c | patch | blob | history |
diff --git a/src/exec.c b/src/exec.c
index b8b538b8c765d1f09ea5312b39e384b11306c92b..0ab259dcbb277031a4a4b26d9ed225fa46e85ed3 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
glist[0] = gid;
glist_len = 1;
- if (gid != egid)
+ if ((gid != egid) && (egid != -1))
{
glist[1] = egid;
glist_len = 2;