]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:lib: use nt_time_to_full_timespec() in interpret_long_date()
authorRalph Boehme <slow@samba.org>
Fri, 29 Nov 2019 16:17:08 +0000 (16:17 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 6 Dec 2019 00:17:36 +0000 (00:17 +0000)
interpret_long_date() is now only used in the client. To enable correct
processing of dates before the UNIX epoch, call nt_time_to_full_timespec().

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>
selftest/knownfail.d/samba3.blackbox
source3/lib/time.c

index 81e8232065e9f0b91a857d41b39d23bd745c07c8..7777ed6da755be3c40373032382b64b5fb3621d8 100644 (file)
@@ -1,4 +1,2 @@
 ^samba3.blackbox.timestamps.time=0\(fileserver\)
 ^samba3.blackbox.timestamps.time=-1\(fileserver\)
-^samba3.blackbox.timestamps.time=-2\(fileserver\)
-^samba3.blackbox.timestamps.time=1968\(fileserver\)
index a1b0c781401d329f7d4fc796ac13054d7e7b02fd..c61c523952aafdabcde9cd80cd177f4bb9f54837 100644 (file)
@@ -264,7 +264,7 @@ struct timespec interpret_long_date(const char *p)
                ret.tv_nsec = 0;
                return ret;
        }
-       return nt_time_to_unix_timespec(nt);
+       return nt_time_to_full_timespec(nt);
 }
 
 /*******************************************************************