1
0
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:
Andrew Tridgell 2008-09-24 17:58:15 -07:00
parent eb5b3f50d1
commit d2bdb8fb16

View File

@ -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;
}