mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-21 11:21:52 +00:00
Last bit for proper Haiku support.
Even tough it is a multi user os, due to BeOs heritage and being backwards compatible with, the desktop runs as root, thus its dog get eaten after all...
This commit is contained in:
parent
41931d7a06
commit
800cdf9617
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