vfs_catia: Rename argument for flock function
authorChristof Schmitt <cs@samba.org>
Fri, 3 Jan 2020 19:08:38 +0000 (12:08 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jan 2020 00:01:36 +0000 (00:01 +0000)
MS-SMB2 and the smbd code refer to this field as share_access. Use the
same name in the function argument.

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

index 3880f16b10cf682588d079b583b418aa8cfa0fc7..23246c72be2e54535ffec2051581f0d7ac86004a 100644 (file)
@@ -2072,7 +2072,7 @@ static bool catia_lock(vfs_handle_struct *handle,
 
 static int catia_kernel_flock(struct vfs_handle_struct *handle,
                              struct files_struct *fsp,
-                             uint32_t share_mode,
+                             uint32_t share_access,
                              uint32_t access_mask)
 {
        struct catia_cache *cc = NULL;
@@ -2083,7 +2083,7 @@ static int catia_kernel_flock(struct vfs_handle_struct *handle,
                return -1;
        }
 
-       ret = SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_mode, access_mask);
+       ret = SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_access, access_mask);
 
        CATIA_FETCH_FSP_POST_NEXT(&cc, fsp);