From 58eed1b295afeff6acfb8c1f10b0bb02280fd491 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 11 Jul 2011 16:12:57 +0200 Subject: s3:smbd: return the real share access mask in the SMBtconX response metze --- source3/smbd/reply.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit