s3: smbd: Update file times right before closing the underlying fd
commitbccbc5bb1ec897a77f1a782bc8db8c4a47a7cf8e
authorSamuel Cabrero <scabrero@samba.org>
Thu, 15 Apr 2021 09:53:13 +0000 (15 11:53 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Mon, 19 Apr 2021 12:28:30 +0000 (19 12:28 +0000)
tree0029771999a9d042892b43dee9ddadba9f2a531d
parented287c35d7a25fbabc6e573dfeaa95db39dcad7c
s3: smbd: Update file times right before closing the underlying fd

Next commits will update file_ntimes() to use handle-based SMB_VFS_FNTIMES().
Move the update_write_time_on_close() call immediately before closing the fd.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/close.c