]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_default: skip checking stat info from the cookie for Persistent Handles
authorRalph Boehme <slow@samba.org>
Tue, 2 Dec 2025 18:47:17 +0000 (19:47 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:36 +0000 (10:18 +0000)
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>
source3/smbd/durable.c

index c5eef93ae41fed6e8adc46824bef515d0371d87b..510e1db19ac14ac850bbed01d05d709c6304758c 100644 (file)
@@ -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: "