Fix for an Issue #670

This commit is contained in:
Miroslav Stampar 2014-04-12 17:22:33 +02:00
parent fd884ec67b
commit ef5ce7e66c

View File

@ -462,7 +462,16 @@ def _createFilesDir():
conf.filePath = paths.SQLMAP_FILES_PATH % conf.hostname
if not os.path.isdir(conf.filePath):
try:
os.makedirs(conf.filePath, 0755)
except OSError, ex:
tempDir = tempfile.mkdtemp(prefix="sqlmapfiles")
warnMsg = "unable to create files directory "
warnMsg += "'%s' (%s). " % (conf.filePath, ex)
warnMsg += "Using temporary directory '%s' instead" % tempDir
logger.warn(warnMsg)
conf.filePath = tempDir
def _createDumpDir():
"""