mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Fix rejecting mkdir on read-only shares
Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3bdca921cc
commit
4666dec416
@ -2815,7 +2815,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
|
||||
bool need_re_stat = false;
|
||||
uint32_t access_mask = SEC_DIR_ADD_SUBDIR;
|
||||
|
||||
if(access_mask & ~(conn->share_access)) {
|
||||
if (!CAN_WRITE(conn) || (access_mask & ~(conn->share_access))) {
|
||||
DEBUG(5,("mkdir_internal: failing share access "
|
||||
"%s\n", lp_servicename(talloc_tos(), SNUM(conn))));
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
|
Loading…
Reference in New Issue
Block a user