From 73e8a1052763582dc271485841d148fbbc1bd73d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 2 Jan 2011 09:12:20 +0000 Subject: [PATCH] minor fix --- plugins/dbms/mysql/fingerprint.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/dbms/mysql/fingerprint.py b/plugins/dbms/mysql/fingerprint.py index 784264161..a03d3c001 100644 --- a/plugins/dbms/mysql/fingerprint.py +++ b/plugins/dbms/mysql/fingerprint.py @@ -275,12 +275,13 @@ class Fingerprint(GenericFingerprint): infoMsg = "fingerprinting the back-end DBMS operating system" logger.info(infoMsg) - if inject.checkBooleanExpression("'/'=(SELECT MID(@@datadir, 1, 1))"): + result = inject.checkBooleanExpression("'/'=(SELECT MID(@@datadir, 1, 1))") + if result is True: kb.os = "Linux" - else: + elif result is False: kb.os = "Windows" - infoMsg = "the back-end DBMS operating system is %s" % kb.os + infoMsg = "the back-end DBMS operating system is %s" % (kb.os or "Unknown") logger.info(infoMsg) self.cleanup(onlyFileTbl=True)