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
* 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);