From: Andrew Tridgell Date: Thu, 25 Sep 2008 00:58:15 +0000 (-0700) Subject: empty access mask is only denied on SMB2 X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2bdb8fb1685d7ab2f23a4c4169bcc2e5c97f675;p=thirdparty%2Fsamba.git empty access mask is only denied on SMB2 --- diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c index 06a4e690041..d479f1e2ee0 100644 --- a/source4/ntvfs/posix/pvfs_acl.c +++ b/source4/ntvfs/posix/pvfs_acl.c @@ -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; }