]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: use nt_time_to_unix_full() in nt_time_string()
authorRalph Boehme <slow@samba.org>
Fri, 22 Nov 2019 10:47:22 +0000 (11:47 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 6 Dec 2019 00:17:35 +0000 (00:17 +0000)
This enables printing time values before the UNIX epoch coming in over the wire
in smbclient allinfo command.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/time.c

index 89f9a45dd612274a80c929f2361db16538be7d0e..16d89a3b7d36da71d51e82f9f07fe5a7a8404e85 100644 (file)
@@ -496,7 +496,7 @@ _PUBLIC_ const char *nt_time_string(TALLOC_CTX *mem_ctx, NTTIME nt)
        if (nt == 0) {
                return "NTTIME(0)";
        }
-       t = nt_time_to_unix(nt);
+       t = nt_time_to_full_time_t(nt);
        return timestring(mem_ctx, t);
 }