Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73e8a10

Browse files
committed
minor fix
1 parent 93cb75f commit 73e8a10

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

plugins/dbms/mysql/fingerprint.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,13 @@ def checkDbmsOs(self, detailed=False):
275275
infoMsg = "fingerprinting the back-end DBMS operating system"
276276
logger.info(infoMsg)
277277

278-
if inject.checkBooleanExpression("'/'=(SELECT MID(@@datadir, 1, 1))"):
278+
result = inject.checkBooleanExpression("'/'=(SELECT MID(@@datadir, 1, 1))")
279+
if result is True:
279280
kb.os = "Linux"
280-
else:
281+
elif result is False:
281282
kb.os = "Windows"
282283

283-
infoMsg = "the back-end DBMS operating system is %s" % kb.os
284+
infoMsg = "the back-end DBMS operating system is %s" % (kb.os or "Unknown")
284285
logger.info(infoMsg)
285286

286287
self.cleanup(onlyFileTbl=True)

0 commit comments

Comments
 (0)