smbd: Rename return variable for requesting filesystem sharemode
authorChristof Schmitt <cs@samba.org>
Mon, 20 Sep 2021 22:46:21 +0000 (15:46 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 21 Sep 2021 18:47:38 +0000 (18:47 +0000)
flock is no longer used, rename the variable accordingly.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 8318972286d8dbf79d3730034eb4117b1c6df4f1..1f51e93b07b0ccd519a29aa13f8029acbad9179f 100644 (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);