1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-15 13:49:28 +03:00

smbd: Rename return variable for requesting filesystem sharemode

flock is no longer used, rename the variable accordingly.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Christof Schmitt
2021-09-20 15:46:21 -07:00
parent d8972d9201
commit fa3f952f3e

View File

@ -4049,7 +4049,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
fsp_get_io_fd(fsp) != -1 &&
lp_kernel_share_modes(SNUM(conn)))
{
int ret_flock;
int ret;
/*
* Beware: streams implementing VFS modules may
* implement streams in a way that fsp will have the
@ -4059,11 +4059,10 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
* check is deferred to the VFS module implementing
* the file-system sharemode call.
*/
ret_flock = SMB_VFS_FILESYSTEM_SHAREMODE(fsp,
share_access,
access_mask);
if(ret_flock == -1 ){
ret = SMB_VFS_FILESYSTEM_SHAREMODE(fsp,
share_access,
access_mask);
if (ret == -1){
del_share_mode(lck, fsp);
TALLOC_FREE(lck);
fd_close(fsp);