mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix race where wrong action (created or opened) could be returned.
Jeremy.
This commit is contained in:
parent
c8c138c1fb
commit
af5b649b01
@ -770,6 +770,14 @@ flags=0x%X flags2=0x%X mode=0%o returned %d\n",
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If there are any share modes set then the file *did*
|
||||||
|
* exist. Ensure we return the correct value for action.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (num_share_modes > 0)
|
||||||
|
file_existed = True;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We exit this block with the share entry *locked*.....
|
* We exit this block with the share entry *locked*.....
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user