From: Ralph Boehme Date: Fri, 29 Nov 2019 16:17:08 +0000 (+0000) Subject: s3:lib: use nt_time_to_full_timespec() in interpret_long_date() X-Git-Tag: ldb-2.1.0~416 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02f18a3980cfa10ccb8448f0f125ae9164648997;p=thirdparty%2Fsamba.git s3:lib: use nt_time_to_full_timespec() in interpret_long_date() 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 Reviewed-by: Jeremy Allison --- diff --git a/selftest/knownfail.d/samba3.blackbox b/selftest/knownfail.d/samba3.blackbox index 81e8232065e..7777ed6da75 100644 --- a/selftest/knownfail.d/samba3.blackbox +++ b/selftest/knownfail.d/samba3.blackbox @@ -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\) diff --git a/source3/lib/time.c b/source3/lib/time.c index a1b0c781401..c61c523952a 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -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); } /*******************************************************************