Fix for a --privileges --technique=B --dbms=Oracle (when one user has no privileges everything is foobared)

This commit is contained in:
Miroslav Stampar 2013-01-30 16:41:57 +01:00
parent 103045d284
commit 93c59c7277

View File

@ -474,7 +474,7 @@ class Users:
count = inject.getValue(query, union=False, error=False, expected=EXPECTED.INT, charsetType=CHARSET_TYPE.DIGITS)
if not isNumPosStrValue(count):
if Backend.isDbms(DBMS.ORACLE) and not query2:
if not retrievedUsers and Backend.isDbms(DBMS.ORACLE) and not query2:
infoMsg = "trying with table USER_SYS_PRIVS"
logger.info(infoMsg)