Minor code refactoring

This commit is contained in:
Bernardo Damele
2010-05-21 12:09:31 +00:00
parent f6bffb61d3
commit a21a7fc56d
5 changed files with 42 additions and 33 deletions

View File

@@ -323,7 +323,7 @@ def __setMetasploit():
if conf.osSmb:
isAdmin = False
if "linux" in PLATFORM or "darwin" in PLATFORM:
if PLATFORM in ( "posix", "mac" ):
isAdmin = os.geteuid()
if isinstance(isAdmin, (int, float, long)) and isAdmin == 0: