1
0
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:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent c8c138c1fb
commit af5b649b01

View File

@ -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*.....
*/ */