Patch for an Issue #1014

This commit is contained in:
Miroslav Stampar 2014-12-11 13:29:42 +01:00
parent 1e06e7c386
commit 785e3d0317

View File

@ -853,8 +853,16 @@ def dataToTrafficFile(data):
raise SqlmapSystemException(errMsg)
def dataToDumpFile(dumpFile, data):
dumpFile.write(data)
dumpFile.flush()
try:
dumpFile.write(data)
dumpFile.flush()
except IOError, ex:
if "No space left" in str(ex):
errMsg = "no space left on output device"
logger.error(errMsg)
else:
raise
def dataToOutFile(filename, data):
retVal = None