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

CHANGES
bin/dig/dig.c

diff --git a/CHANGES b/CHANGES
index 9f42962929b9987b2e57707234e3229b9e0952ea..b2352f1d4650cf8ceb76b52f19f6cd872656b2e2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3515.  [port]          '%T' is not portable in strftime(). [RT #32763]
+
 3509.  [cleanup]       Added a product line to version file to allow for
                        easy naming of different products (BIND
                        vs BIND ESV, for example). [RT #32755]
index d008d69c372eb7c0b83d5c008629f87b0b8bbb68..762517981b12fa9661aacaf1d54b5839bd18d82d 100644 (file)
@@ -253,7 +253,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, "