mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-21 11:13:47 +00:00
Patch for #3130
This commit is contained in:
parent
e7d448c56c
commit
c1825b2651
3 changed files with 6 additions and 3 deletions
|
|
@ -49,6 +49,7 @@ def update():
|
|||
errMsg = "unable to update content of directory '%s' ('%s')" % (directory, getSafeExString(ex))
|
||||
logger.error(errMsg)
|
||||
else:
|
||||
attrs = os.stat(os.path.join(directory, "sqlmap.py")).st_mode
|
||||
for wildcard in ('*', ".*"):
|
||||
for _ in glob.glob(os.path.join(directory, wildcard)):
|
||||
try:
|
||||
|
|
@ -83,6 +84,8 @@ def update():
|
|||
else:
|
||||
if not success:
|
||||
logger.error("update could not be completed")
|
||||
else:
|
||||
os.chmod(os.path.join(directory, "sqlmap.py"), attrs)
|
||||
else:
|
||||
infoMsg = "updating sqlmap to the latest development revision from the "
|
||||
infoMsg += "GitHub repository"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue