Note: this is a behaviour change in the non-default case when the user
has disabled "getinfo ask sharemode".
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
/*
* Deal with other opens having a modified write time.
*/
- if (!is_omit_timespec(&lck_state.write_time)) {
+ if (fsp_getinfo_ask_sharemode(fsp) &&
+ !is_omit_timespec(&lck_state.write_time))
+ {
update_stat_ex_mtime(&fsp->fsp_name->st, lck_state.write_time);
}