mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-16 19:13:29 +03:00
Fixes #1551
This commit is contained in:
parent
a5489516eb
commit
763b72a3ed
|
@ -52,7 +52,12 @@ class Filesystem:
|
||||||
|
|
||||||
lengthQuery = "SELECT DATALENGTH(%s) FROM %s" % (self.tblField, self.fileTblName)
|
lengthQuery = "SELECT DATALENGTH(%s) FROM %s" % (self.tblField, self.fileTblName)
|
||||||
|
|
||||||
localFileSize = os.path.getsize(localFile)
|
try:
|
||||||
|
localFileSize = os.path.getsize(localFile)
|
||||||
|
except OSError:
|
||||||
|
warnMsg = "file '%s' is missing" % localFile
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
localFileSize = 0
|
||||||
|
|
||||||
if fileRead and Backend.isDbms(DBMS.PGSQL):
|
if fileRead and Backend.isDbms(DBMS.PGSQL):
|
||||||
logger.info("length of read file '%s' cannot be checked on PostgreSQL" % remoteFile)
|
logger.info("length of read file '%s' cannot be checked on PostgreSQL" % remoteFile)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user