mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 20:51:30 +00:00
Another reindent pass on smb.lua, this time fully automated
Using Vim and this indent script: https://gist.github.com/bonsaiviking/8845871
This commit is contained in:
@@ -2684,10 +2684,10 @@ function find_files(smbstate, fname, options)
|
|||||||
options.srch_attrs = { ro = true, hidden = true, system = true, dir = true}
|
options.srch_attrs = { ro = true, hidden = true, system = true, dir = true}
|
||||||
end
|
end
|
||||||
|
|
||||||
local nattrs = ( options.srch_attrs.ro and 1 or 0 ) + ( options.srch_attrs.hidden and 2 or 0 ) +
|
local nattrs = (( options.srch_attrs.ro and 1 or 0 ) + ( options.srch_attrs.hidden and 2 or 0 ) +
|
||||||
( options.srch_attrs.hidden and 2 or 0 ) + ( options.srch_attrs.system and 4 or 0 ) +
|
( options.srch_attrs.hidden and 2 or 0 ) + ( options.srch_attrs.system and 4 or 0 ) +
|
||||||
( options.srch_attrs.volid and 8 or 0 ) + ( options.srch_attrs.dir and 16 or 0 ) +
|
( options.srch_attrs.volid and 8 or 0 ) + ( options.srch_attrs.dir and 16 or 0 ) +
|
||||||
( options.srch_attrs.archive and 32 or 0 )
|
( options.srch_attrs.archive and 32 or 0 ))
|
||||||
|
|
||||||
if ( not(fname) ) then
|
if ( not(fname) ) then
|
||||||
fname = '\\*'
|
fname = '\\*'
|
||||||
|
|||||||
Reference in New Issue
Block a user