mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-18 10:02:12 +00:00
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:
parent
b9e5306c84
commit
bfebcf0055
1 changed files with 0 additions and 3 deletions
|
@ -350,9 +350,6 @@ Sys_GetGameAPI(void *parms)
|
||||||
const char *gamename = "game.so";
|
const char *gamename = "game.so";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setreuid(getuid(), getuid());
|
|
||||||
setegid(getgid());
|
|
||||||
|
|
||||||
if (game_library)
|
if (game_library)
|
||||||
{
|
{
|
||||||
Com_Error(ERR_FATAL, "Sys_GetGameAPI without Sys_UnloadingGame");
|
Com_Error(ERR_FATAL, "Sys_GetGameAPI without Sys_UnloadingGame");
|
||||||
|
|
Loading…
Reference in a new issue