s3:smbd: fix file corruption using "write cache size != 0"
commit00f6184e52b7b4a044b8696e02023cd548ce87aa
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:57:54 +0000 (9 22:57 +0100)
treee2fde0c2eecbd6425a8a0df7fce865cad4aaf0aa
parent907e64cc6534933d5da780444e930488ecd8aa42
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-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Sun Nov  9 22:57:54 CET 2014 on sn-devel-104
source3/smbd/oplock.c