mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-08 20:19:23 +01:00
Checking for root doesn't matter when you don't quit afterwards.
This commit is contained in:
parent
5a18914f96
commit
5f90e63937
@ -157,6 +157,7 @@ def main():
|
||||
if os.name == 'posix':
|
||||
if (os.getuid() == 0 or os.geteuid() == 0) and not options.allowRoot:
|
||||
sys.stderr.write('Please, don\'t run this as root.\n')
|
||||
sys.exit(-1)
|
||||
|
||||
filename = ''
|
||||
if args:
|
||||
|
Loading…
Reference in New Issue
Block a user