mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 09:51:21 +00:00
remove useless setuid code
This commit is contained in:
parent
4a5f66fbe3
commit
2e6d24d973
3 changed files with 1 additions and 12 deletions
|
@ -3038,10 +3038,9 @@ qboolean QGL_Init( const char *dllname )
|
|||
{
|
||||
char fn[1024];
|
||||
// FILE *fp; // bk001204 - unused
|
||||
extern uid_t saved_euid; // unix_main.c
|
||||
|
||||
// if we are not setuid, try current directory
|
||||
if (getuid() == saved_euid) {
|
||||
if (1) {
|
||||
getcwd(fn, sizeof(fn));
|
||||
Q_strcat(fn, sizeof(fn), "/");
|
||||
Q_strcat(fn, sizeof(fn), dllname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue