s3:smb2_tcon: return the correct maximal_access on the share
authorStefan Metzmacher <metze@samba.org>
Sun, 10 Jul 2011 11:02:11 +0000 (13:02 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jul 2011 19:32:48 +0000 (21:32 +0200)
metze
(cherry picked from commit a1046389ffcc476456ac76cb701a4325d1c42ef9)

source3/smbd/smb2_tcon.c

index 75cfe549ec45d454e4029ae5c354eeb7687cd69d..ea38d1e0298812e39b9b6a1ce7ff367487e5912d 100644 (file)
@@ -271,7 +271,7 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
                break;
        }
 
-       *out_maximal_access = FILE_GENERIC_ALL;
+       *out_maximal_access = tcon->compat_conn->share_access;
 
        *out_tree_id = tcon->tid;
        return NT_STATUS_OK;