Remove old setuid() magic

This commit is contained in:
Yamagi Burmeister 2012-06-02 16:46:25 +02:00
parent 66c6122bbb
commit cac409b116
2 changed files with 0 additions and 10 deletions

View file

@ -35,7 +35,6 @@
#include "header/unix.h"
cvar_t *nostdout;
uid_t saved_euid;
int
main ( int argc, char **argv )

View file

@ -215,7 +215,6 @@ VID_LoadRefresh ( char *name )
char fn [ MAX_OSPATH ];
char *path;
struct stat st;
extern uid_t saved_euid;
if ( reflib_active )
{
@ -237,11 +236,7 @@ VID_LoadRefresh ( char *name )
Com_Printf( "----- refresher initialization -----\n");
/* regain root */
seteuid( saved_euid );
path = Cvar_Get( "basedir", ".", CVAR_NOSET )->string;
snprintf( fn, MAX_OSPATH, "%s/%s", path, name );
if ( stat( fn, &st ) == -1 )
@ -327,10 +322,6 @@ VID_LoadRefresh ( char *name )
IN_KeyboardInit_fp( Do_Key_Event );
Key_ClearStates();
/* give up root now */
setreuid( getuid(), getuid() );
setegid( getgid() );
Com_Printf( "------------------------------------\n\n" );
reflib_active = true;
return ( true );