s3:smb2 do not set allow_namespace_caching flag for a share
authorChristian Ambach <ambi@samba.org>
Thu, 24 Nov 2011 12:49:17 +0000 (13:49 +0100)
committerChristian Ambach <ambi@samba.org>
Thu, 24 Nov 2011 16:25:58 +0000 (17:25 +0100)
this matches Win7/2002R2 behavior and clients also must ignore
this flag when set (MS-SMB 2.2.10), so we should not set it at all

source3/smbd/smb2_tcon.c

index bf98d254e02d9368b1c6335a9726d3d22350cfd5..b0db5e66b750928a9ade2e096ad424c9a819fa31 100644 (file)
@@ -248,7 +248,7 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
                *out_share_type = SMB2_SHARE_TYPE_DISK;
        }
 
-       *out_share_flags = SMB2_SHAREFLAG_ALLOW_NAMESPACE_CACHING;
+       *out_share_flags = 0;
 
        if (lp_msdfs_root(SNUM(tcon->compat_conn)) && lp_host_msdfs()) {
                *out_share_flags |= (SMB2_SHAREFLAG_DFS|SMB2_SHAREFLAG_DFS_ROOT);