mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
Possible fix for the allow-root problem.
This commit is contained in:
parent
00409b53da
commit
e97c610e77
@ -173,7 +173,7 @@ if __name__ == '__main__':
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
if os.name == 'posix':
|
||||
if os.getuid() == 0 or os.geteuid() == 0 and not options.allowRoot:
|
||||
if (os.getuid() == 0 or os.geteuid() == 0) and not options.allowRoot:
|
||||
sys.stderr.write('Dude, don\'t even try to run this as root.\n')
|
||||
sys.exit(-1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user