The branch, v3-5-test has been updated
       via  218aab2... Filter the returned DOS attributes by 0xFF for clients 
using older protocols (LANMAN2 or below). Jeremy. (cherry picked from commit 
f44d3754eeefb1a0d0282a424ae9901d72301766)
      from  c572a5b... Remove "Protocol" as an extern, and add accessor 
functions. Jeremy. (cherry picked from commit 
cbafe17bb37acfb76acf9d9905be1029e274089e)

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


- Log -----------------------------------------------------------------
commit 218aab293e5c64484eac59b12f6e7bf27dd774b1
Author: Jeremy Allison <j...@samba.org>
Date:   Wed Nov 4 15:25:15 2009 -0800

    Filter the returned DOS attributes by 0xFF for clients
    using older protocols (LANMAN2 or below).
    Jeremy.
    (cherry picked from commit f44d3754eeefb1a0d0282a424ae9901d72301766)

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

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


Changeset truncated at 500 lines:

diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 7cb84b3..199a673 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -380,6 +380,12 @@ uint32 dos_mode_msdfs(connection_struct *conn,
                result |= aHIDDEN;
        }
 
+       if (get_Protocol() <= PROTOCOL_LANMAN2) {
+               DEBUG(10,("dos_mode_msdfs : filtering protocol 0x%x to 0xff\n",
+                       (unsigned int)result ));
+               result &= 0xff;
+       }
+
        DEBUG(8,("dos_mode_msdfs returning "));
 
        if (result & aHIDDEN) DEBUG(8, ("h"));
@@ -560,6 +566,12 @@ uint32 dos_mode(connection_struct *conn, const struct 
smb_filename *smb_fname)
                result |= aHIDDEN;
        }
 
+       if (get_Protocol() <= PROTOCOL_LANMAN2) {
+               DEBUG(10,("dos_mode : filtering protocol 0x%x to 0xff\n",
+                       (unsigned int)result ));
+               result &= 0xff;
+       }
+
        DEBUG(8,("dos_mode returning "));
 
        if (result & aHIDDEN) DEBUG(8, ("h"));


-- 
Samba Shared Repository

Reply via email to