r10744: Fix for the second incarnation of bug #3088, pushed by Alex Masterov
commit94fe079be747ea5899f483dd8d00fdd247de4e33
authorJeremy Allison <jra@samba.org>
Wed, 5 Oct 2005 22:41:16 +0000 (5 22:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:04:51 +0000 (10 11:04 -0500)
treead0986d4cbd3469b87a1041a558d7e64dcf3c4c1
parentf1ece089caa1512b583b313b46d7f3888c65580b
r10744: Fix for the second incarnation of bug #3088, pushed by Alex Masterov
<alex@infobit.ru>. A fcbopen specific part of the code was erroneously
being called as part of the mainline open. Note, that this patch
superceeds and replaces the fix that Volker added for this bug
(which he added a Samba4 torture test for ) :

"Fix a race condition in Samba 3. If two files are opened simultaneously with
NTCREATEX_DISP_CREATE (create if not exists, else fail) they might end up with
two or more times NT_STATUS_OK as EEXIST is not correctly handled."

Jeremy.
(This used to be commit 5d7ab9a17e793c05409a16675ac2aa2861c4f89e)
source3/smbd/open.c