minor update

This commit is contained in:
Miroslav Stampar 2010-12-09 00:59:39 +00:00
parent 0c01be0eeb
commit db39dc32fc

View File

@ -235,7 +235,7 @@ def __createTargetDirs():
if not os.path.isdir(paths.SQLMAP_OUTPUT_PATH): if not os.path.isdir(paths.SQLMAP_OUTPUT_PATH):
try: try:
os.makedirs(paths.SQLMAP_OUTPUT_PATH, 0755) os.makedirs(paths.SQLMAP_OUTPUT_PATH, 0755)
except: except OSError:
tempDir = tempfile.mkdtemp(prefix='output') tempDir = tempfile.mkdtemp(prefix='output')
warnMsg = "unable to create default root output directory at " warnMsg = "unable to create default root output directory at "
warnMsg += "'%s'. using temporary directory '%s' instead" % (paths.SQLMAP_OUTPUT_PATH, tempDir) warnMsg += "'%s'. using temporary directory '%s' instead" % (paths.SQLMAP_OUTPUT_PATH, tempDir)
@ -248,7 +248,7 @@ def __createTargetDirs():
if not os.path.isdir(conf.outputPath): if not os.path.isdir(conf.outputPath):
try: try:
os.makedirs(conf.outputPath, 0755) os.makedirs(conf.outputPath, 0755)
except: except OSError:
tempDir = tempfile.mkdtemp(prefix='output') tempDir = tempfile.mkdtemp(prefix='output')
warnMsg = "unable to create output directory '%s'. " % conf.outputPath warnMsg = "unable to create output directory '%s'. " % conf.outputPath
warnMsg += "using temporary directory '%s' instead" % tempDir warnMsg += "using temporary directory '%s' instead" % tempDir