The branch, v3-0-test has been updated
       via  cfdbe8a1f2057ad1a8886ca7445a812219648d19 (commit)
      from  4558c09c921793dd358de3ad4b9b4dd091e43662 (commit)

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


- Log -----------------------------------------------------------------
commit cfdbe8a1f2057ad1a8886ca7445a812219648d19
Author: Jeremy Allison <[EMAIL PROTECTED]>
Date:   Thu Oct 16 21:01:56 2008 -0700

    Cope with bad trans2mkdir requests from System i QNTC IBM SMB client.
    If total_data == 4 Windows doesn't care what values
    are placed in that field, it just ignores them.
    The System i QNTC IBM SMB client puts bad values here,
    so ignore them.
    Jeremy.

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

Summary of changes:
 source/smbd/trans2.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 1401a5b..30c84bf 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -6168,9 +6168,11 @@ static int call_trans2mkdir(connection_struct *conn, 
char *inbuf, char *outbuf,
                if (!ea_list) {
                        return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
                }
-       } else if (IVAL(pdata,0) != 4) {
-               return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
        }
+       /* If total_data == 4 Windows doesn't care what values
+        * are placed in that field, it just ignores them.
+        * The System i QNTC IBM SMB client puts bad values here,
+        * so ignore them. */
 
        status = create_directory(conn, directory);
 


-- 
Samba Shared Repository

Reply via email to