Remove unnecessary enforcement of the EUID and EGID.

I guess that these calls were added since dlopen() might ignore the
global LD_LIBRARY_PATH if EUID != UID. In Yamagi Quake II this isn't
a problem because we're enforcing EUID == UID in main() and don't use
LD_LIBRARY_PATH anyways.

These calls broke the jack audio server and maybe some other programs.
The problem was debugged by @ScrelliCopter. This commit closes issue
#270.
This commit is contained in:
Yamagi Burmeister 2018-11-01 17:09:53 +01:00
parent b9e5306c84
commit bfebcf0055

View file

@ -350,9 +350,6 @@ Sys_GetGameAPI(void *parms)
const char *gamename = "game.so";
#endif
setreuid(getuid(), getuid());
setegid(getgid());
if (game_library)
{
Com_Error(ERR_FATAL, "Sys_GetGameAPI without Sys_UnloadingGame");