]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
mdssvc: prepare for returning timestamps with sub-seconds granularity
authorRalph Boehme <slow@samba.org>
Wed, 17 May 2023 14:37:36 +0000 (16:37 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 26 Jul 2023 22:43:38 +0000 (22:43 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15427

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/mdssvc/mdssvc.c

index c13fdd7ca71910af942bd279c1c62711cc227022..4f1bbdfd9d6ea49ee38464aa4528ccd7396324ff 100644 (file)
@@ -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;