summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-11 16:12:57 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-11 21:33:29 +0200
commit58eed1b295afeff6acfb8c1f10b0bb02280fd491 (patch)
tree1ee86bcfef6fbf1716671674808a1a5755be60ae /source3/smbd
parent581d8fa36b73abab030168dc35fb631ccd42a388 (diff)
downloadsamba-58eed1b295afeff6acfb8c1f10b0bb02280fd491.tar.gz
samba-58eed1b295afeff6acfb8c1f10b0bb02280fd491.tar.bz2
samba-58eed1b295afeff6acfb8c1f10b0bb02280fd491.zip
s3:smbd: return the real share access mask in the SMBtconX response
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 72fee8cee1..2f37b61b12 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -858,9 +858,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);