On POSIX check if UID is 0.

This commit is contained in:
Bartosz Taudul 2022-11-27 22:35:19 +01:00
parent 6933856157
commit 7e5ee54f93
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -24,9 +24,11 @@ bool IsElevated()
#else
#include <unistd.h>
bool IsElevated()
{
return false;
return getuid() == 0;
}
#endif