summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-05-29 22:22:42 +1000
committerAndrew Tridgell <tridge@samba.org>2008-05-29 22:22:42 +1000
commit1dfa50a48040bdc1166be2dbe1063fd8a79166f8 (patch)
treef100292c55c31deb2a4761c2bd955edb1e46142b
parentd1125a303a31fbe08a9bd0064ec132b4d7cbb131 (diff)
downloadsamba-1dfa50a48040bdc1166be2dbe1063fd8a79166f8.tar.gz
don't mask out SEC_FILE_READ_ATTRIBUTE on SMB2
-rw-r--r--source/ntvfs/posix/pvfs_acl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/ntvfs/posix/pvfs_acl.c b/source/ntvfs/posix/pvfs_acl.c
index 623b1ae5e9a..9a9200e4f07 100644
--- a/source/ntvfs/posix/pvfs_acl.c
+++ b/source/ntvfs/posix/pvfs_acl.c
@@ -500,7 +500,9 @@ NTSTATUS pvfs_access_check(struct pvfs_state *pvfs,
/* expand the generic access bits to file specific bits */
*access_mask = pvfs_translate_mask(*access_mask);
- *access_mask &= ~SEC_FILE_READ_ATTRIBUTE;
+ if (pvfs->ntvfs->ctx->protocol != PROTOCOL_SMB2) {
+ *access_mask &= ~SEC_FILE_READ_ATTRIBUTE;
+ }
status = pvfs_acl_load(pvfs, name, -1, acl);
if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {