[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2814-g43054b1

Jim McDonough jmcd at samba.org
Wed Aug 13 22:06:56 GMT 2008


The branch, v3-2-test has been updated
       via  43054b199cb2a5f12c8e0c2bb14cf2328a945152 (commit)
      from  f03ffcb78e4ea8a8bd4a5fa0d26642544314a5e4 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 43054b199cb2a5f12c8e0c2bb14cf2328a945152
Author: Jim McDonough <jmcd at samba.org>
Date:   Wed Aug 13 18:03:51 2008 -0400

    Prevent NT_STATUS 0xF1000000 errors from appearing when
    dos errors are used and there is no error.  It should
    be mapped directly to NT_STATUS_OK.  smbclient to older
    servers didn't work.

-----------------------------------------------------------------------

Summary of changes:
 source/libsmb/async_smb.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/async_smb.c b/source/libsmb/async_smb.c
index 04c22a9..58bba2b 100644
--- a/source/libsmb/async_smb.c
+++ b/source/libsmb/async_smb.c
@@ -31,6 +31,12 @@ NTSTATUS cli_pull_error(char *buf)
 		return NT_STATUS(IVAL(buf, smb_rcls));
 	}
 
+	/* if the client uses dos errors, but there is no error,
+	   we should return no error here, otherwise it looks
+	   like an unknown bad NT_STATUS. jmcd */
+	if (CVAL(buf, smb_rcls) == 0)
+		return NT_STATUS_OK;
+
 	return NT_STATUS_DOS(CVAL(buf, smb_rcls), SVAL(buf,smb_err));
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list