Patch for an Issue #1017

This commit is contained in:
Miroslav Stampar
2014-12-12 09:58:42 +01:00
parent bb4ac41ff7
commit 23d33bb5b5
2 changed files with 22 additions and 3 deletions

View File

@@ -566,7 +566,7 @@ def _createTargetDirs():
os.makedirs(paths.SQLMAP_OUTPUT_PATH, 0755)
warnMsg = "using '%s' as the output directory" % paths.SQLMAP_OUTPUT_PATH
logger.warn(warnMsg)
except OSError, ex:
except (OSError, IOError), ex:
try:
tempDir = tempfile.mkdtemp(prefix="sqlmapoutput")
except IOError, _:
@@ -587,7 +587,7 @@ def _createTargetDirs():
if not os.path.isdir(conf.outputPath):
try:
os.makedirs(conf.outputPath, 0755)
except OSError, ex:
except (OSError, IOError), ex:
try:
tempDir = tempfile.mkdtemp(prefix="sqlmapoutput")
except IOError, _: