Commit 5ab3447d authored by Ondrej Zajicek (work)'s avatar Ondrej Zajicek (work)
Browse files

Sysdep: Drop supplementary groups when dropping GID

We forgot to do that. Oops.
parent 4fa0e472
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -83,6 +83,9 @@ drop_gid(gid_t gid)
{
  if (setgid(gid) < 0)
    die("setgid: %m");

  if (setgroups(0, NULL) < 0)
    die("setgroups: %m");
}

/*