From: Ralph Boehme Date: Tue, 2 Dec 2025 18:47:17 +0000 (+0100) Subject: vfs_default: skip checking stat info from the cookie for Persistent Handles X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89cfb4bbbb303826b88c6fdcd0cc3ed9c6215c73;p=thirdparty%2Fsamba.git vfs_default: skip checking stat info from the cookie for Persistent Handles 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 Reviewed-by: Anoop C S --- diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c index c5eef93ae41..510e1db19ac 100644 --- a/source3/smbd/durable.c +++ b/source3/smbd/durable.c @@ -339,6 +339,10 @@ static bool vfs_default_durable_reconnect_check_stat( 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: "