summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
Diffstat (limited to 'uidswap.c')
-rw-r--r--uidswap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uidswap.c b/uidswap.c
index bbef830eb..9b16a6b51 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -84,7 +84,7 @@ temporarily_use_uid(struct passwd *pw)
84 /* Set the effective uid to the given (unprivileged) uid. */ 84 /* Set the effective uid to the given (unprivileged) uid. */
85 if (setgroups(user_groupslen, user_groups) < 0) 85 if (setgroups(user_groupslen, user_groups) < 0)
86 fatal("setgroups: %.100s", strerror(errno)); 86 fatal("setgroups: %.100s", strerror(errno));
87#endif /* !HAVE_CYWIN */ 87#endif /* !HAVE_CYGWIN */
88#ifndef SAVED_IDS_WORK_WITH_SETEUID 88#ifndef SAVED_IDS_WORK_WITH_SETEUID
89 /* Propagate the privileged gid to all of our gids. */ 89 /* Propagate the privileged gid to all of our gids. */
90 if (setgid(getegid()) < 0) 90 if (setgid(getegid()) < 0)