--- src/grg_safe.c.orig Wed May 14 02:02:13 2003 +++ src/grg_safe.c Wed May 14 02:03:43 2003 @@ -33,6 +33,7 @@ #include #include +#include #include #include #include @@ -43,7 +44,6 @@ #include #endif #include -#include #include #include @@ -59,8 +59,6 @@ grg_mlockall_and_drop_root_privileges(void) { // drop eventual group root privileges - setgid(getgid()); - setgid(getgid()); // twice for counter "saved IDs", cfr. // Secure Programming HowTo #ifdef HAVE_SYS_FSUID_H setfsgid(getgid()); @@ -84,8 +82,6 @@ #endif // drop root privileges - setuid(getuid()); - setuid(getuid()); #ifdef HAVE_SYS_FSUID_H setfsuid(getuid()); setfsuid(getuid());