1
0
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:
jah
2016-02-07 15:28:26 +00:00
parent a40fe5413c
commit 3da6feda13

View File

@@ -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