diff options
-rw-r--r-- | uidswap.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 | } |