From: Ralph Boehme Date: Wed, 17 May 2023 14:37:36 +0000 (+0200) Subject: mdssvc: prepare for returning timestamps with sub-seconds granularity X-Git-Tag: ldb-2.8.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dc66fecf7c1743d264c5c4f8978b77bab75ed86;p=thirdparty%2Fsamba.git mdssvc: prepare for returning timestamps with sub-seconds granularity BUG: https://bugzilla.samba.org/show_bug.cgi?id=15427 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/rpc_server/mdssvc/mdssvc.c b/source3/rpc_server/mdssvc/mdssvc.c index c13fdd7ca71..4f1bbdfd9d6 100644 --- a/source3/rpc_server/mdssvc/mdssvc.c +++ b/source3/rpc_server/mdssvc/mdssvc.c @@ -189,7 +189,7 @@ static bool add_filemeta(struct mds_ctx *mds_ctx, return false; } } else if (strcmp(attribute, "kMDItemFSContentChangeDate") == 0) { - sl_time.tv_sec = sp->st_ex_mtime.tv_sec; + sl_time = convert_timespec_to_timeval(sp->st_ex_mtime); result = dalloc_add_copy(meta, &sl_time, sl_time_t); if (result != 0) { return false;