"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nselib/afp.lua" between
nmap-7.90.tgz and nmap-7.91.tgz

About: Nmap ("Network Mapper") is a utility for network exploration or security auditing (port scanner).

afp.lua  (nmap-7.90.tgz):afp.lua  (nmap-7.91.tgz)
skipping to change at line 352 skipping to change at line 352
[ERROR.FPLockErr]="Some or all of the requested range is locked by another use r; a lock range conflict exists.", [ERROR.FPLockErr]="Some or all of the requested range is locked by another use r; a lock range conflict exists.",
[ERROR.FPMiscErr]="Non-AFP error occurred.", [ERROR.FPMiscErr]="Non-AFP error occurred.",
[ERROR.FPObjectNotFound]="Input parameters do not point to an existing directo ry, file, or volume.", [ERROR.FPObjectNotFound]="Input parameters do not point to an existing directo ry, file, or volume.",
[ERROR.FPParamErr]="Parameter error.", [ERROR.FPParamErr]="Parameter error.",
[ERROR.FPObjectExists] = "File or directory already exists.", [ERROR.FPObjectExists] = "File or directory already exists.",
[ERROR.FPUserNotAuth] = "UAM failed (the specified old password doesn't match) ; no user is logged in yet for the specified session; authentication failed; pas sword is incorrect.", [ERROR.FPUserNotAuth] = "UAM failed (the specified old password doesn't match) ; no user is logged in yet for the specified session; authentication failed; pas sword is incorrect.",
[ERROR.FPItemNotFound] = "Specified APPL mapping, comment, or icon was not fou nd in the Desktop database; specified ID is unknown.", [ERROR.FPItemNotFound] = "Specified APPL mapping, comment, or icon was not fou nd in the Desktop database; specified ID is unknown.",
[ERROR.FPCallNotSupported] = "Server does not support this command.", [ERROR.FPCallNotSupported] = "Server does not support this command.",
} }
local TIME_OFFSET = os.time{year=2000, month=1, day=1, hour=0} - os.time{year=19 -- Dates are shifted forward one day to avoid referencing 12/31/1969 UTC
70, month=1, day=1, hour=0} -- when specifying 1/1/1970 (local) in a timezone that is ahead of UTC
local TIME_OFFSET = os.time({year=2000, month=1, day=2, hour=0}) - os.time({year
=1970, month=1, day=2, hour=0})
-- Check if all the bits in flag are set in bitmap. -- Check if all the bits in flag are set in bitmap.
local function flag_is_set(bitmap, flag) local function flag_is_set(bitmap, flag)
return (bitmap & flag) == flag return (bitmap & flag) == flag
end end
-- Serialize path of a given type -- Serialize path of a given type
-- NB: For now the actual UTF-8 encoding is ignored -- NB: For now the actual UTF-8 encoding is ignored
local function encode_path (path) local function encode_path (path)
if path.type == PATH_TYPE.ShortName or path.type == PATH_TYPE.LongName then if path.type == PATH_TYPE.ShortName or path.type == PATH_TYPE.LongName then
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)