Patch for an Issue #1142

This commit is contained in:
Miroslav Stampar 2015-01-28 00:52:40 +01:00
parent fd632e5ada
commit 5400bb2c95

View File

@ -1458,7 +1458,11 @@ def _createTemporaryDirectory():
errMsg += "writeable by the current user" errMsg += "writeable by the current user"
raise SqlmapSystemException, errMsg raise SqlmapSystemException, errMsg
kb.tempDir = tempfile.tempdir = tempfile.mkdtemp(prefix="sqlmap", suffix=str(os.getpid())) if "sqlmap" not in (tempfile.tempdir or ""):
tempfile.tempdir = tempfile.mkdtemp(prefix="sqlmap", suffix=str(os.getpid()))
kb.tempDir = tempfile.tempdir
if not os.path.isdir(tempfile.tempdir): if not os.path.isdir(tempfile.tempdir):
os.makedirs(tempfile.tempdir) os.makedirs(tempfile.tempdir)