vfs_streams_xattr: Rename argument of flock function
authorChristof Schmitt <cs@samba.org>
Fri, 3 Jan 2020 19:51:17 +0000 (12:51 -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_streams_xattr.c

index fa54fe26435551ab7be1c3768002252694a566eb..85efe2bcc376192f0e9e34f76831b82b7602fa3d 100644 (file)
@@ -1585,7 +1585,7 @@ static bool streams_xattr_getlock(vfs_handle_struct *handle,
 
 static int streams_xattr_kernel_flock(vfs_handle_struct *handle,
                                      files_struct *fsp,
-                                     uint32_t share_mode,
+                                     uint32_t share_access,
                                      uint32_t access_mask)
 {
        struct stream_io *sio =
@@ -1593,7 +1593,7 @@ static int streams_xattr_kernel_flock(vfs_handle_struct *handle,
 
        if (sio == NULL) {
                return SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp,
-                                                share_mode, access_mask);
+                                                share_access, access_mask);
        }
 
        return 0;