1
0
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:
dmiller
2014-02-06 15:53:34 +00:00
parent a56f73effb
commit 96c1a4f46b

View File

@@ -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 = '\\*'