mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 04:52:07 +00:00
Remove old setuid() magic
This commit is contained in:
parent
66c6122bbb
commit
cac409b116
2 changed files with 0 additions and 10 deletions
|
@ -35,7 +35,6 @@
|
|||
#include "header/unix.h"
|
||||
|
||||
cvar_t *nostdout;
|
||||
uid_t saved_euid;
|
||||
|
||||
int
|
||||
main ( int argc, char **argv )
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue