mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 02:09:03 +00:00
Treat stale, unwritable files as unreadable.
This commit is contained in:
@@ -1789,7 +1789,8 @@ function get_local_assignments_data()
|
|||||||
elseif exists and readable then
|
elseif exists and readable then
|
||||||
update_required, modified_date, entity_tag = requires_updating( file )
|
update_required, modified_date, entity_tag = requires_updating( file )
|
||||||
if update_required and not writable then
|
if update_required and not writable then
|
||||||
return nil
|
update_required = false
|
||||||
|
readable = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user