From: Anoop C S Date: Sat, 14 Jun 2025 08:59:00 +0000 (+0530) Subject: vfs_ceph: Add ctime processing to SMB_VFS_FNTIMES X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=639646be35c78596777e5d842d14d17457874701;p=thirdparty%2Fsamba.git vfs_ceph: Add ctime processing to SMB_VFS_FNTIMES ctime was only missing from the list of timestamps processed for various checks. Signed-off-by: Anoop C S Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 3913cb01b2c..7b9b2ec3638 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -963,6 +963,10 @@ static int cephwrap_fntimes(struct vfs_handle_struct *handle, stx.stx_mtime = ft->mtime; mask |= CEPH_SETATTR_MTIME; } + if (!is_omit_timespec(&ft->ctime)) { + stx.stx_ctime = ft->ctime; + mask |= CEPH_SETATTR_CTIME; + } if (!is_omit_timespec(&ft->create_time)) { stx.stx_btime = ft->create_time; mask |= CEPH_SETATTR_BTIME;