The branch, v3-4-test has been updated
       via  dc9b226... Fix bug 6875 - trans2 FIND_FIRST2 response --> 
FIND_FIRST2 Data -> Fille Attributes are returned as 0x220 for LANMAN2.1 
dialect Jeremy.
      from  268fb01... s3: Do not redefine strupr.

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


- Log -----------------------------------------------------------------
commit dc9b226d8ced06b8b24eb38b411eac11eace41be
Author: Jeremy Allison <[email protected]>
Date:   Fri Nov 6 14:08:09 2009 -0800

    Fix bug 6875 - trans2 FIND_FIRST2 response --> FIND_FIRST2 Data -> Fille 
Attributes are returned as 0x220 for LANMAN2.1 dialect Jeremy.

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

Summary of changes:
 source3/smbd/dosmode.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 5ae7151..45ea74d 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -20,6 +20,8 @@
 
 #include "includes.h"
 
+extern enum protocol_types Protocol;
+
 static int set_sparse_flag(const SMB_STRUCT_STAT * const sbuf)
 {
 #if defined (HAVE_STAT_ST_BLOCKS) && defined(STAT_ST_BLOCKSIZE)
@@ -341,6 +343,12 @@ uint32 dos_mode_msdfs(connection_struct *conn, const char 
*path,SMB_STRUCT_STAT
                result |= aHIDDEN;
        }
 
+       if (Protocol <= PROTOCOL_LANMAN2) {
+               DEBUG(10,("dos_mode_msdfs : filtering result 0x%x\n",
+                       (unsigned int)result ));
+               result &= 0xff;
+       }
+
        DEBUG(8,("dos_mode_msdfs returning "));
 
        if (result & aHIDDEN) DEBUG(8, ("h"));
@@ -518,6 +526,12 @@ uint32 dos_mode(connection_struct *conn, const char 
*path,SMB_STRUCT_STAT *sbuf)
                result |= aHIDDEN;
        }
 
+       if (Protocol <= PROTOCOL_LANMAN2) {
+               DEBUG(10,("dos_mode : filtering result 0x%x\n",
+                       (unsigned int)result ));
+               result &= 0xff;
+       }
+
        DEBUG(8,("dos_mode returning "));
 
        if (result & aHIDDEN) DEBUG(8, ("h"));


-- 
Samba Shared Repository

Reply via email to