Check for root only on unix systems

This commit is contained in:
André Apitzsch 2017-07-17 21:36:17 +02:00
parent 47c83311d2
commit b11b7a4a95
3 changed files with 9 additions and 6 deletions

View File

@ -3,6 +3,7 @@
import os
import sys
if sys.platform != 'win32':
if os.geteuid() == 0:
sys.exit("You must not launch gajim as root, it is insecure.")

View File

@ -23,6 +23,7 @@
import os
import sys
if sys.platform != 'win32':
if os.geteuid() == 0:
sys.exit("You must not launch gajim as root, it is insecure.")

View File

@ -23,6 +23,7 @@
import os
import sys
if sys.platform != 'win32':
if os.geteuid() == 0:
sys.exit("You must not launch gajim as root, it is insecure.")