mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[client] stop people running the client as root
This commit is contained in:
parent
553e2830bb
commit
6d296f2b44
@ -1586,6 +1586,12 @@ static void lg_shutdown()
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
if (getuid() == 0)
|
||||
{
|
||||
DEBUG_ERROR("Do not run looking glass as root!");
|
||||
return -1;
|
||||
}
|
||||
|
||||
DEBUG_INFO("Looking Glass (" BUILD_VERSION ")");
|
||||
DEBUG_INFO("Locking Method: " LG_LOCK_MODE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user