git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eef2e3
)
don't mask out SEC_FILE_READ_ATTRIBUTE on SMB2
author
Andrew Tridgell
<tridge@samba.org>
Thu, 29 May 2008 12:22:42 +0000
(22:22 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 29 May 2008 12:22:42 +0000
(22:22 +1000)
(This used to be commit
1dfa50a48040bdc1166be2dbe1063fd8a79166f8
)
source4/ntvfs/posix/pvfs_acl.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_acl.c
b/source4/ntvfs/posix/pvfs_acl.c
index 623b1ae5e9a5e7e3c6b0e2b25131946ca35e3f43..9a9200e4f0739615c0a5baf15f511c62cd64fb9e 100644
(file)
--- a/
source4/ntvfs/posix/pvfs_acl.c
+++ b/
source4/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)) {