mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
empty access mask is only denied on SMB2
This commit is contained in:
parent
eb5b3f50d1
commit
d2bdb8fb16
@ -511,7 +511,9 @@ NTSTATUS pvfs_access_check(struct pvfs_state *pvfs,
|
||||
NTSTATUS status;
|
||||
struct security_descriptor *sd;
|
||||
|
||||
if (*access_mask == 0) {
|
||||
/* on SMB2 a blank access mask is always denied */
|
||||
if (pvfs->ntvfs->ctx->protocol == PROTOCOL_SMB2 &&
|
||||
*access_mask == 0) {
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user