mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 21:17:54 +00:00
[client] stop people running the client as root
This commit is contained in:
parent
553e2830bb
commit
6d296f2b44
2 changed files with 7 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
B2-rc2-2-g667ab981ba+1
|
||||
B2-rc2-3-g553e2830bb+1
|
|
@ -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 a new issue