]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove remnants from write cache handling which was removed a long time ago
authorRalph Boehme <slow@samba.org>
Wed, 1 Oct 2025 09:45:43 +0000 (11:45 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2025 15:59:35 +0000 (15:59 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/close.c

index ce04056fc34d0aca6d563c39a0f16a36d9ebddd5..d2d53e779e1d985c74d6a9289965fc8acc21b15c 100644 (file)
@@ -849,12 +849,7 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp,
                        NT_STATUS_RANGE_NOT_LOCKED);
        }
 
-       /*
-        * If we're flushing on a close we can get a write
-        * error here, we must remember this.
-        */
-
-       if (NT_STATUS_IS_OK(status) && fsp->op != NULL) {
+       if (fsp->op != NULL) {
                is_durable = fsp->op->global->durable;
        }