From: Stefan Metzmacher Date: Sun, 10 Jul 2011 11:02:11 +0000 (+0200) Subject: s3:smb2_tcon: return the correct maximal_access on the share X-Git-Tag: talloc-2.0.6~817 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=a1046389ffcc476456ac76cb701a4325d1c42ef9;p=amitay%2Fsamba.git s3:smb2_tcon: return the correct maximal_access on the share metze --- diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c index 946bc5639b2..6b86e24dc20 100644 --- a/source3/smbd/smb2_tcon.c +++ b/source3/smbd/smb2_tcon.c @@ -272,7 +272,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;