smbd: let mark_file_modified() always call trigger_write_time_update()
authorRalph Boehme <slow@samba.org>
Sun, 15 Mar 2020 07:30:21 +0000 (08:30 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Apr 2020 08:12:37 +0000 (08:12 +0000)
commit6d3279d01d9e75514fe8b7f070b32ed5b8d9e7c5
tree10e12ab6ad4eb37c739b95b7785a15e3f01a4d8a
parentf09cb423ec6b66313a92c12543412aa0c4bf5596
smbd: let mark_file_modified() always call trigger_write_time_update()

Preperatory change: the next commit will reset fsp->update_write_time_on_close
in the event handler, so this change ensures it gets set again for any
subsequent write.

This will NOT always result in a write-time update because
trigger_write_time_update() has its own only-once logic using the internal
variable fsp->update_write_time_triggered.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14320

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 53de2da7acfc24513082190502d93306c12b7434)
source3/smbd/fileio.c