From eadb2a54d1733a482999eb770182156dad1e184d Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 5 Dec 2013 16:20:26 -0700 Subject: [PATCH] s3: Return correct error code from SMB2 AIO read failure This is similar to commit 27e20d5d60ea8aa526bcb7c2dfc18dd2de0bb97b which fixed the same case for SMB2 writes: When sending the AIO read fails, return the real error instead of mapping it to NT_STATUS_FILE_CLOSED. Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- source3/smbd/smb2_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c index d6d3d908787..6478326ac06 100644 --- a/source3/smbd/smb2_read.c +++ b/source3/smbd/smb2_read.c @@ -464,7 +464,7 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx, if (!NT_STATUS_EQUAL(status, NT_STATUS_RETRY)) { /* Real error in setting up aio. Fail. */ - tevent_req_nterror(req, NT_STATUS_FILE_CLOSED); + tevent_req_nterror(req, status); return tevent_req_post(req, ev); } -- 2.11.4.GIT