mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Separate NFS Export entries with newlines.
This commit is contained in:
parent
1dadea9407
commit
6f390be198
1 changed files with 3 additions and 3 deletions
|
|
@ -258,7 +258,7 @@ action = function(host, port)
|
|||
local args = {}
|
||||
args['name'] = 'Arguments:'
|
||||
table.insert(args,
|
||||
string.format("maxfiles: %d (file listing output limited)\n",
|
||||
string.format("maxfiles: %d (file listing output limited)",
|
||||
nfs_info.maxfiles))
|
||||
table.insert(o, args)
|
||||
end
|
||||
|
|
@ -272,11 +272,11 @@ action = function(host, port)
|
|||
local results, access, err = {}, {}
|
||||
status, err = nfs_ls(nfs_info, v.name, results, access)
|
||||
if not status then
|
||||
table.insert(o, string.format("NFS Export %s", v.name))
|
||||
table.insert(o, string.format("\nNFS Export %s", v.name))
|
||||
table.insert(o, string.format("ERROR: %s", err))
|
||||
else
|
||||
table.insert(o,
|
||||
string.format("NFS Export: %s", results[1].filename))
|
||||
string.format("\nNFS Export: %s", results[1].filename))
|
||||
if #access ~= 0 then
|
||||
table.insert(o, string.format("NFS Access: %s", access[1]))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue