File missing-call-to-setgroups-before-setuid.patch of Package logkeys

diff -u ../../logkeys-0.1.1c.orig/src/logkeys.cc ./logkeys.cc
--- ../../logkeys-0.1.1c.orig/src/logkeys.cc	2016-02-06 23:52:12.000000000 +0100
+++ ./logkeys.cc	2017-10-12 14:57:37.730724498 +0200
@@ -23,6 +23,7 @@
 #include <sys/stat.h>
 #include <sys/socket.h>
 #include <linux/input.h>
+#include <grp.h>
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>  // include config produced from ./configure
@@ -327,6 +328,7 @@
 void determine_input_device()
 {
   // better be safe than sory: while running other programs, switch user to nobody
+  setgroups(0, NULL);
   setegid(65534); seteuid(65534);
   
   // extract input number from /proc/bus/input/devices (I don't know how to do it better. If you have an idea, please let me know.)