s3:smbd: fix file corruption using "write cache size != 0"
commit7e486b942c7e5cd923bb9ced6b7bc9649bc7100e
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Nov 2014 23:57:40 +0000 (7 15:57 -0800)
committerKarolin Seeger <kseeger@samba.org>
Sun, 9 Nov 2014 21:51:19 +0000 (9 22:51 +0100)
treeab977dbfdf649c3b59d56af61e9cbe24fdd67bec
parent1b0da1d8bac7e8dfb52e723a7753b75ce8053a9c
s3:smbd: fix file corruption using "write cache size != 0"

A client can:
- open a handle (h1)
- write some data to h1.
- open a 2nd handle h2 (downgrades both handles to level II)
- try to read the data on h2 (this gets old data)

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10921

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Sun Nov  9 22:51:19 CET 2014 on sn-devel-104
source3/smbd/oplock.c