summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdep/unix/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index 99cfab17..01c0dedb 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -87,6 +87,9 @@ drop_gid(gid_t gid)
{
if (setgid(gid) < 0)
die("setgid: %m");
+
+ if (setgroups(0, NULL) < 0)
+ die("setgroups: %m");
}
/*