As we can't reliably update the stat info in the cookie in the disconnect
handler, we have to skip these checks for Persistent Handles.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
SMB_STRUCT_STAT *fsp_st = &fsp->fsp_name->st;
bool equal;
+ if (fsp->op->global->persistent) {
+ return true;
+ }
+
if (cookie_st->st_ex_mode != fsp_st->st_ex_mode) {
DEBUG(1, ("vfs_default_durable_reconnect (%s): "
"stat_ex.%s differs: "