]> 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:43 +0000 (15:34 +1100)
(cherry picked from commit 550c92405fc1df47e725f2ecbaa5154c9239fcfd)

CHANGES
bin/dig/dig.c

diff --git a/CHANGES b/CHANGES
index d74124138a7211ca7fb3eca0a6ad57aec5d26faf..07d7b6b58a63424824da9a9e1b824d652273cfaa 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 1eb991d78494c8475b96f9e4107d66e604c0770c..1e5870698ad158099772f02281d2b3117e2db98e 100644 (file)
@@ -255,7 +255,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, "