s3:smbd: return the real share access mask in the SMBtconX response
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Jul 2011 14:12:57 +0000 (16:12 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 11 Jul 2011 19:33:29 +0000 (21:33 +0200)
metze

source3/smbd/reply.c

index 72fee8cee164bd890a5d2b845c050b3fd1e7b984..2f37b61b1265066fb97baa7e66e6b77158024514 100644 (file)
@@ -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);