diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-05-29 22:22:42 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-05-29 22:22:42 +1000 |
commit | f0bc7c07fe3148adee4ee625fcfc24cd5d4cc034 (patch) | |
tree | aaff218bea37e492126cbf164f2acb0fed98d457 /source4/ntvfs/posix | |
parent | 8eef2e34128d713b741307a8c7b1650217698e06 (diff) | |
download | samba-f0bc7c07fe3148adee4ee625fcfc24cd5d4cc034.tar.gz samba-f0bc7c07fe3148adee4ee625fcfc24cd5d4cc034.tar.bz2 samba-f0bc7c07fe3148adee4ee625fcfc24cd5d4cc034.zip |
don't mask out SEC_FILE_READ_ATTRIBUTE on SMB2
(This used to be commit 1dfa50a48040bdc1166be2dbe1063fd8a79166f8)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r-- | source4/ntvfs/posix/pvfs_acl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c index 623b1ae5e9..9a9200e4f0 100644 --- 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)) { |