s3:smbd: fix file corruption using "write cache size != 0"
authorStefan Metzmacher <metze@samba.org>
Thu, 6 Nov 2014 08:23:46 +0000 (09:23 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 6 Nov 2014 12:09:38 +0000 (13:09 +0100)
commitfbe40d21c8e0f5bc87635e71fb828dfc5479a1ff
treeb5db9dd6f1c15f80c6b2f5517cd2af29d1832be5
parent10e888f6cee8cdc4c905d3c2788a47901bd42b2c
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>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Nov  6 13:09:38 CET 2014 on sn-devel-104
source3/smbd/oplock.c