diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-27 13:19:07 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-27 13:19:07 +0100 |
commit | bc1a369a0ed254ede591b65756d75568c45549ea (patch) | |
tree | 9c7fdefdc1d943506752d2d4e15cd4d81f65cc42 /source4/ntvfs/common | |
parent | b3d2a56df29b163d93c4d20efc22c523441a92e5 (diff) | |
parent | e20f1bb6dba342fcc91d3fcf28d64c7d5fd39a38 (diff) | |
download | samba-bc1a369a0ed254ede591b65756d75568c45549ea.tar.gz samba-bc1a369a0ed254ede591b65756d75568c45549ea.tar.bz2 samba-bc1a369a0ed254ede591b65756d75568c45549ea.zip |
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Conflicts:
source/build/smb_build/makefile.pm
(This used to be commit c45b97c4714dd0565949732394c9c1e8eedbb99a)
Diffstat (limited to 'source4/ntvfs/common')
-rw-r--r-- | source4/ntvfs/common/opendb_tdb.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/ntvfs/common/opendb_tdb.c b/source4/ntvfs/common/opendb_tdb.c index 73c04b7c4f..fe5a0a8864 100644 --- a/source4/ntvfs/common/opendb_tdb.c +++ b/source4/ntvfs/common/opendb_tdb.c @@ -288,7 +288,8 @@ static NTSTATUS odb_oplock_break_send(struct odb_context *odb, } static bool access_attributes_only(uint32_t access_mask, - uint32_t open_disposition) + uint32_t open_disposition, + bool break_to_none) { switch (open_disposition) { case NTCREATEX_DISP_SUPERSEDE: @@ -298,6 +299,11 @@ static bool access_attributes_only(uint32_t access_mask, default: break; } + + if (break_to_none) { + return false; + } + #define CHECK_MASK(m,g) ((m) && (((m) & ~(g))==0) && (((m) & (g)) != 0)) return CHECK_MASK(access_mask, SEC_STD_SYNCHRONIZE | @@ -326,7 +332,8 @@ static NTSTATUS odb_tdb_open_can_internal(struct odb_context *odb, * but we'll not grant the oplock below */ attrs_only = access_attributes_only(access_mask, - open_disposition); + open_disposition, + break_to_none); if (attrs_only) { break; } |