mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +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
|
#else
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
bool IsElevated()
|
bool IsElevated()
|
||||||
{
|
{
|
||||||
return false;
|
return getuid() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user