Merge pull request #604 from devnexen/last_bit_for_haiku

Last bit for proper Haiku support.
This commit is contained in:
Yamagi 2020-10-06 16:55:41 +02:00 committed by GitHub
commit 741ffcdb1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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