1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

Separate NFS Export entries with newlines.

This commit is contained in:
djalal
2011-01-04 20:09:43 +00:00
parent 1dadea9407
commit 6f390be198

View File

@@ -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