s3:smbd: fix file corruption using "write cache size != 0"
commitf2cb16e496ce4f753e46525e485120a87fdfd297
authorStefan Metzmacher <metze@samba.org>
Thu, 6 Nov 2014 08:23:46 +0000 (6 09:23 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 7 Nov 2014 22:23:30 +0000 (7 23:23 +0100)
treeb5eb2866fcdcef1e202b8d54e124ece4690094b2
parenta7085ff72d8aff64d2c01d31737a72eaa35540e6
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

(cherry picked from commit fbe40d21c8e0f5bc87635e71fb828dfc5479a1ff)

Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-2-test): Fri Nov  7 23:23:31 CET 2014 on sn-devel-104
source3/smbd/oplock.c