mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 21:19:01 +00:00
global bug fixes
This commit is contained in:
@@ -886,7 +886,7 @@ local build_request = function(host, port, method, path, options)
|
|||||||
mod_options.header["Content-Length"] = #options.content
|
mod_options.header["Content-Length"] = #options.content
|
||||||
end
|
end
|
||||||
if options.cookies then
|
if options.cookies then
|
||||||
local cookies = buildCookies(cookies, path)
|
local cookies = buildCookies(options.cookies, path)
|
||||||
if #cookies > 0 then
|
if #cookies > 0 then
|
||||||
mod_options.header["Cookie"] = cookies
|
mod_options.header["Cookie"] = cookies
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ Mount = {
|
|||||||
-- @return entries table containing a list of share names (strings)
|
-- @return entries table containing a list of share names (strings)
|
||||||
Export = function( self )
|
Export = function( self )
|
||||||
|
|
||||||
local catch = function() socket:close() end
|
local catch = function() self.socket:close() end
|
||||||
local try = nmap.new_try(catch)
|
local try = nmap.new_try(catch)
|
||||||
local msg_type = 0
|
local msg_type = 0
|
||||||
local prg_mount = Util.ProgNameToNumber("mountd")
|
local prg_mount = Util.ProgNameToNumber("mountd")
|
||||||
@@ -490,7 +490,7 @@ Mount = {
|
|||||||
-- @return fhandle string containing the filehandle of the remote export
|
-- @return fhandle string containing the filehandle of the remote export
|
||||||
Mount = function( self, path )
|
Mount = function( self, path )
|
||||||
|
|
||||||
local catch = function() socket:close() end
|
local catch = function() self.socket:close() end
|
||||||
local try = nmap.new_try(catch)
|
local try = nmap.new_try(catch)
|
||||||
local packet, data
|
local packet, data
|
||||||
local prog_id = Util.ProgNameToNumber("mountd")
|
local prog_id = Util.ProgNameToNumber("mountd")
|
||||||
@@ -564,7 +564,7 @@ Mount = {
|
|||||||
-- @return error string containing error if status is false
|
-- @return error string containing error if status is false
|
||||||
Unmount = function( self, path )
|
Unmount = function( self, path )
|
||||||
|
|
||||||
local catch = function() socket:close() end
|
local catch = function() self.socket:close() end
|
||||||
local try = nmap.new_try(catch)
|
local try = nmap.new_try(catch)
|
||||||
local packet, data
|
local packet, data
|
||||||
local prog_id = Util.ProgNameToNumber("mountd")
|
local prog_id = Util.ProgNameToNumber("mountd")
|
||||||
@@ -924,7 +924,7 @@ NFS = {
|
|||||||
--
|
--
|
||||||
GetAttrDecode = function( self, data, pos )
|
GetAttrDecode = function( self, data, pos )
|
||||||
local attrib = {}
|
local attrib = {}
|
||||||
local catch = function() socket:close() end
|
local catch = function() self.socket:close() end
|
||||||
local try = nmap.new_try(catch)
|
local try = nmap.new_try(catch)
|
||||||
local NFS_OK = 0
|
local NFS_OK = 0
|
||||||
local status
|
local status
|
||||||
@@ -1012,7 +1012,7 @@ NFS = {
|
|||||||
-- <code>total_blocks</code>, <code>free_blocks</code> and <code>available_blocks</code>
|
-- <code>total_blocks</code>, <code>free_blocks</code> and <code>available_blocks</code>
|
||||||
--
|
--
|
||||||
StatFsDecode = function( self, data, pos )
|
StatFsDecode = function( self, data, pos )
|
||||||
local catch = function() socket:close() end
|
local catch = function() self.socket:close() end
|
||||||
local try = nmap.new_try(catch)
|
local try = nmap.new_try(catch)
|
||||||
local statfs = {}
|
local statfs = {}
|
||||||
local NFS_OK, NSFERR_ACCESS = 0, 13
|
local NFS_OK, NSFERR_ACCESS = 0, 13
|
||||||
|
|||||||
Reference in New Issue
Block a user