]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3515. [port] '%T' is not portable in strftime(). [RT #32763]
authorMark Andrews <marka@isc.org>
Wed, 6 Mar 2013 04:34:10 +0000 (15:34 +1100)
committerMark Andrews <marka@isc.org>
Wed, 6 Mar 2013 04:34:28 +0000 (15:34 +1100)
(cherry picked from commit 550c92405fc1df47e725f2ecbaa5154c9239fcfd)

CHANGES
bin/dig/dig.c

diff --git a/CHANGES b/CHANGES
index b3fd80c387bdbe026dbb8f1a8adad323e5310e10..0b7bb6d662d29bebc937a5d73d6321fdc662dfcc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3515.  [port]          '%T' is not portable in strftime(). [RT #32763]
+
 3514.  [bug]           The ranges for valid key sizes in ddns-confgen and
                        rndc-confgen were too constrained. Keys up to 512
                        bits are now allowed for most algorithms, and up
index 203ed4eb9407caff35c62b33e43381e3b8af7002..6c99c98bef8a0fe62236eddae86ab3e0cf11a442 100644 (file)
@@ -259,7 +259,7 @@ received(int bytes, isc_sockaddr_t *from, dig_query_t *query) {
                time(&tnow);
                tmnow  = *localtime(&tnow);
                if (strftime(time_str, sizeof(time_str),
-                            "%a %b %d %T %Z %Y", &tmnow) > 0U)
+                            "%a %b %d %H:%M:%S %Z %Y", &tmnow) > 0U)
                        printf(";; WHEN: %s\n", time_str);
                if (query->lookup->doing_xfr) {
                        printf(";; XFR size: %u records (messages %u, "