remove useless setuid code
This commit is contained in:
1 parent
4a5f66fbe3
commit
2e6d24d973
3 files changed
+1
-12
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user