diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-11 16:12:57 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-07-26 21:54:17 +0200 |
commit | 6802d903e10a0977cbae50013dad488f442a4fbc (patch) | |
tree | e1d161b19fe0e0de4838851c68f3defcae7ea4da | |
parent | 7ed7dc83900620cc0789083694af117bbc6513dc (diff) | |
download | samba-6802d903e10a0977cbae50013dad488f442a4fbc.tar.gz samba-6802d903e10a0977cbae50013dad488f442a4fbc.tar.xz samba-6802d903e10a0977cbae50013dad488f442a4fbc.zip |
s3:smbd: return the real share access mask in the SMBtconX response
metze
(cherry picked from commit 58eed1b295afeff6acfb8c1f10b0bb02280fd491)
(cherry picked from commit c384bf75284fa7280b9279d305c5404f9f1066df)
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 099a36e828f..c594a6b7aea 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -835,9 +835,7 @@ void reply_tcon_and_X(struct smb_request *req) perm1 = FILE_ALL_ACCESS; perm2 = FILE_ALL_ACCESS; } else { - perm1 = CAN_WRITE(conn) ? - SHARE_ALL_ACCESS : - SHARE_READ_ONLY; + perm1 = conn->share_access; } SIVAL(req->outbuf, smb_vwv3, perm1); |