r23150: Fix Samba3 in the build farm again. In the case where the
commit4c795b293d34db5fa334c7627fa86d0ed197adcb
authorJeremy Allison <jra@samba.org>
Sat, 26 May 2007 01:19:51 +0000 (26 01:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:49 +0000 (10 12:22 -0500)
treec6a1fe978fdf3d0a8875f51b3900e3c4e7b878c9
parent4d6caa09e2b8c1c26f3dde832586d871bbbc2dda
r23150: Fix Samba3 in the build farm again. In the case where the
file was being created and we go into the race condition check,
we were testing for compatible open modes, but were not breaking
oplocks in the same way as if the file existed. This meant that
we weren't going into the code path that sets fsp->oplock = FAKE_LEVEL_II_OPLOCK
if the client didn't ask for an oplock on file create. We need
to do this as internally it's what Windows does.
Jeremy.
(This used to be commit 9b9513856e9e9f84d5acd94e3e3d6e73358ee7dc)
source3/smbd/open.c