From ba4097af380f92fa83d6dddd00f34f40965b05b3 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 16 May 2013 14:59:48 +0000 Subject: [PATCH] os.date format string cleanup Removed some non-ANSI-C strftime format strings ("%F") and locale-dependent formats ("%c") from NSE scripts and libraries. C99-specified %F was noticed by Alex Weber (http://seclists.org/nmap-dev/2013/q2/300) --- CHANGELOG | 4 ++++ nselib/natpmp.lua | 3 +-- nselib/rpc.lua | 5 +---- scripts/bitcoin-info.nse | 3 +-- scripts/gpsd-info.nse | 2 +- scripts/memcached-info.nse | 3 +-- scripts/ntp-info.nse | 3 +-- scripts/openlookup-info.nse | 4 +--- 8 files changed, 11 insertions(+), 16 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index fec85b480..44c548456 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ # Nmap Changelog ($Id$); -*-text-*- +o Removed some non-ANSI-C strftime format strings ("%F") and + locale-dependent formats ("%c") from NSE scripts and libraries. + C99-specified %F was noticed by Alex Weber. [Daniel Miller] + o [Zenmap] Added Polish translation by Jacek Wielemborek. o [NSE] Added http-coldfusion-subzero. It detects Coldfusion 9 and 10 diff --git a/nselib/natpmp.lua b/nselib/natpmp.lua index 4a8edfc3a..9eb69bcf3 100644 --- a/nselib/natpmp.lua +++ b/nselib/natpmp.lua @@ -9,7 +9,6 @@ local bin = require "bin" local ipOps = require "ipOps" local nmap = require "nmap" -local os = require "os" local stdnse = require "stdnse" _ENV = stdnse.module("natpmp", stdnse.seeall) @@ -104,7 +103,7 @@ Response = { pos, self.time, self.ip = bin.unpack("