summaryrefslogtreecommitdiff
path: root/libfshelp/exec-reauth.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-12-13 20:59:37 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-12-13 20:59:37 +0100
commit913d709e15209b2c33fdf146b4ad9d59737ab6a3 (patch)
treeabc8807dec40e7cc564276e986237dba3e24eb73 /libfshelp/exec-reauth.c
parent983ff51c9b6825dc0fc73b9531233d7495863718 (diff)
Fix setgid behavior
* libfshelp/exec-reauth.c (fshelp_exec_reauth): Set gid in eff_gids and avail_gids instead of in eff_uids, and avail_uids.
Diffstat (limited to 'libfshelp/exec-reauth.c')
-rw-r--r--libfshelp/exec-reauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfshelp/exec-reauth.c b/libfshelp/exec-reauth.c
index 3df375d5..d9a82974 100644
--- a/libfshelp/exec-reauth.c
+++ b/libfshelp/exec-reauth.c
@@ -108,7 +108,7 @@ fshelp_exec_reauth (int suid, uid_t uid, int sgid, gid_t gid,
if (suid && !err)
err = idvec_setid (eff_uids, avail_uids, uid, &_secure);
if (sgid && !err)
- err = idvec_setid (eff_uids, avail_uids, gid, &_secure);
+ err = idvec_setid (eff_gids, avail_gids, gid, &_secure);
if (err)
goto abandon_suid;