1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 06:29:02 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
dmiller
829fbef715 Fix human-readable sizes in ls.lua
First, enforce significant digits when converting, e.g. 1.1K to bytes.
Next, use the server-returned human-readable format instead of
converting to bytes by default. The conversion to bytes is still done to
get total byte count.

Also changed how boolean options work to better match existing
convention: --script-args ls.human or --script-args ls.human=1 now work.
You must explicitly say "false", "no", or "0" to make a boolean flag
false (or just leave it out).
2015-09-04 14:23:14 +00:00
dmiller
998da3d070 Fix an assertion error in ls.lua: size is a number, not a string 2015-09-04 12:52:09 +00:00
dmiller
087fadf2a9 Add ls.lua library. Closes #106 2015-09-04 12:52:08 +00:00