mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Fix usage of nmap.fetchfile in several scripts
Discussion thread: http://seclists.org/nmap-dev/2013/q2/121 Existing behavior preserved and preferred, but absolute and local paths should also work now. Notably, smb-psexec's locate_file function claimed to check current directory but did not.
This commit is contained in:
parent
666de7b83f
commit
93eee124c2
5 changed files with 30 additions and 26 deletions
|
|
@ -118,7 +118,7 @@ end
|
|||
-- @return status false if error.
|
||||
-- @return string current line.
|
||||
local useriterator = function(list)
|
||||
local f = nmap.fetchfile(list)
|
||||
local f = nmap.fetchfile(list) or list
|
||||
if not f then
|
||||
return false, ("\n ERROR: Couldn't find %s"):format(list)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue