summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uidswap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/uidswap.c b/uidswap.c
index 36fe9c896..0702e1d9e 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -187,8 +187,7 @@ restore_uid(void)
187 setgid(getgid()); 187 setgid(getgid());
188#endif /* SAVED_IDS_WORK_WITH_SETEUID */ 188#endif /* SAVED_IDS_WORK_WITH_SETEUID */
189 189
190 if (saved_egroupslen > 0 && 190 if (setgroups(saved_egroupslen, saved_egroups) < 0)
191 setgroups(saved_egroupslen, saved_egroups) < 0)
192 fatal("setgroups: %.100s", strerror(errno)); 191 fatal("setgroups: %.100s", strerror(errno));
193 temporarily_use_uid_effective = 0; 192 temporarily_use_uid_effective = 0;
194} 193}