mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-31 21:30:36 +00:00
Merge pull request #604 from devnexen/last_bit_for_haiku
Last bit for proper Haiku support.
This commit is contained in:
commit
741ffcdb1c
1 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef __HAIKU__
|
||||
/* Prevent running Quake II as root. Only very mad
|
||||
minded or stupid people even think about it. :) */
|
||||
if (getuid() == 0)
|
||||
|
@ -120,6 +121,7 @@ main(int argc, char **argv)
|
|||
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Enforce the real UID to prevent setuid crap
|
||||
if (getuid() != geteuid())
|
||||
|
|
Loading…
Reference in a new issue