From 2b01a271a6916790b46f960e8d76f524a990d333 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 29 Jan 2024 16:33:41 +0100 Subject: [PATCH] smbprofile: SMB2-READ result NT_STATUS_END_OF_FILE is not an error Signed-off-by: Ralph Boehme Reviewed-by: Guenther Deschner --- source3/include/smbprofile.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index 9692ebadef1..550c7924cfd 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -541,6 +541,11 @@ static inline void smbprofile_update_failed_count( ok = true; } break; + case SMB2_OP_READ: + if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE)) { + ok = true; + } + break; } if (!ok) { -- 2.47.3