mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
mdssvc: fix returning file modification date for older Mac releases
Mac 10.10 uses kMDItemContentModificationDate instead of
kMDItemFSContentChangeDate.
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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 26 23:42:44 UTC 2023 on atb-devel-224
(cherry picked from commit c2e83ebe72
)
Autobuild-User(v4-18-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-18-test): Mon Jul 31 09:11:21 UTC 2023 on atb-devel-224
This commit is contained in:
parent
f4a3373585
commit
35573c0446
@ -188,7 +188,9 @@ static bool add_filemeta(struct mds_ctx *mds_ctx,
|
||||
if (result != 0) {
|
||||
return false;
|
||||
}
|
||||
} else if (strcmp(attribute, "kMDItemFSContentChangeDate") == 0) {
|
||||
} else if (strcmp(attribute, "kMDItemFSContentChangeDate") == 0 ||
|
||||
strcmp(attribute, "kMDItemContentModificationDate") == 0)
|
||||
{
|
||||
sl_time = convert_timespec_to_timeval(sp->st_ex_mtime);
|
||||
result = dalloc_add_copy(meta, &sl_time, sl_time_t);
|
||||
if (result != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user