From 6f390be1981d3f59bcbaef386a0ddbbe45008233 Mon Sep 17 00:00:00 2001 From: djalal Date: Tue, 4 Jan 2011 20:09:43 +0000 Subject: [PATCH] Separate NFS Export entries with newlines. --- scripts/nfs-ls.nse | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/nfs-ls.nse b/scripts/nfs-ls.nse index e674ab66c..199ddad81 100644 --- a/scripts/nfs-ls.nse +++ b/scripts/nfs-ls.nse @@ -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