1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00

Avoid passing float to os.time. Fixes #588

This commit is contained in:
dmiller
2016-11-30 00:10:04 +00:00
parent 636823622c
commit 70e9d70a48
2 changed files with 5 additions and 1 deletions

View File

@@ -2805,7 +2805,7 @@ function find_files(smbstate, fname, options)
pos, fe.s_fname = bin.unpack("A24", response.data, pos)
local time = fe.created
time = (time / 10000000) - 11644473600
time = (time // 10000000) - 11644473600
fe.created = os.date("%Y-%m-%d %H:%M:%S", time)
-- TODO: cleanup fe.s_fname