0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Sysdep: Drop supplementary groups when dropping GID

We forgot to do that. Oops.
This commit is contained in:
Ondrej Zajicek (work) 2019-09-10 15:08:15 +02:00
parent ba870cab31
commit 37f39789f4

View File

@ -87,6 +87,9 @@ drop_gid(gid_t gid)
{
if (setgid(gid) < 0)
die("setgid: %m");
if (setgroups(0, NULL) < 0)
die("setgroups: %m");
}
/*