mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-12-01 14:03:52 +03:00
Patch for an Issue #1107
This commit is contained in:
parent
f9a9ededb1
commit
7e7513aa5e
|
@ -1443,8 +1443,16 @@ def _createTemporaryDirectory():
|
||||||
Creates temporary directory for this run.
|
Creates temporary directory for this run.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
try:
|
||||||
if not os.path.isdir(tempfile.gettempdir()):
|
if not os.path.isdir(tempfile.gettempdir()):
|
||||||
os.makedirs(tempfile.gettempdir())
|
os.makedirs(tempfile.gettempdir())
|
||||||
|
except IOError, ex:
|
||||||
|
errMsg = "there has been a problem while accessing "
|
||||||
|
errMsg += "system's temporary directory location(s) ('%s'). Please " % ex
|
||||||
|
errMsg += "make sure that there is enough disk space left. If problem persists, "
|
||||||
|
errMsg += "try to set environment variable 'TMP' to a location "
|
||||||
|
errMsg += "writeable by the current user"
|
||||||
|
raise SqlmapSystemException, errMsg
|
||||||
kb.tempDir = tempfile.tempdir = tempfile.mkdtemp(prefix="sqlmap", suffix=str(os.getpid()))
|
kb.tempDir = tempfile.tempdir = tempfile.mkdtemp(prefix="sqlmap", suffix=str(os.getpid()))
|
||||||
if not os.path.isdir(tempfile.tempdir):
|
if not os.path.isdir(tempfile.tempdir):
|
||||||
os.makedirs(tempfile.tempdir)
|
os.makedirs(tempfile.tempdir)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user