[Pkg-samba-maint] [samba] 119/135: s3: Return correct error code from SMB2 AIO read failure

Ivo De Decker ivodd at moszumanska.debian.org
Sat Jan 11 21:30:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

ivodd pushed a commit to branch master
in repository samba.

commit 6f461035f8b21e1e143526581b3256663a579a32
Author: Christof Schmitt <cs at samba.org>
Date:   Thu Dec 5 16:20:26 2013 -0700

    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 <cs at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    (cherry picked from commit eadb2a54d1733a482999eb770182156dad1e184d)
---
 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 d6d3d90..6478326 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);
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list