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:
David Carlier 2020-10-02 14:36:57 +00:00
parent 41931d7a06
commit 800cdf9617

View file

@ -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())