mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-31 15:40:46 +00:00
Patch for #3638
This commit is contained in:
parent
b1efef45a9
commit
9c917ec920
6 changed files with 13 additions and 29 deletions
|
|
@ -638,15 +638,7 @@ def _createTargetDirs():
|
|||
if not os.path.isdir(conf.outputPath):
|
||||
os.makedirs(conf.outputPath)
|
||||
except (OSError, IOError, TypeError) as ex:
|
||||
try:
|
||||
tempDir = tempfile.mkdtemp(prefix="sqlmapoutput")
|
||||
except Exception as _:
|
||||
errMsg = "unable to write to the temporary directory ('%s'). " % _
|
||||
errMsg += "Please make sure that your disk is not full and "
|
||||
errMsg += "that you have sufficient write permissions to "
|
||||
errMsg += "create temporary files and/or directories"
|
||||
raise SqlmapSystemException(errMsg)
|
||||
|
||||
tempDir = tempfile.mkdtemp(prefix="sqlmapoutput")
|
||||
warnMsg = "unable to create output directory "
|
||||
warnMsg += "'%s' (%s). " % (conf.outputPath, getUnicode(ex))
|
||||
warnMsg += "Using temporary directory '%s' instead" % getUnicode(tempDir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue