mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
On POSIX check if UID is 0.
This commit is contained in:
parent
6933856157
commit
7e5ee54f93
@ -24,9 +24,11 @@ bool IsElevated()
|
||||
|
||||
#else
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
bool IsElevated()
|
||||
{
|
||||
return false;
|
||||
return getuid() == 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user