mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Avoid traversing dot and dot-dot directories
This commit is contained in:
parent
6998bfca49
commit
ccdb816552
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ local function list_files(host, share, smbstate, path, options, output, maxdepth
|
|||
if not continue then
|
||||
return false
|
||||
end
|
||||
if is_dir(fe) then
|
||||
if is_dir(fe) and not (fe.fname == "." or fe.fname == "..") then
|
||||
continue = true
|
||||
if maxdepth > 0 then
|
||||
continue = list_files(host, share, smbstate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue