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

index 70efa30b91410ad3e419660eff1654a79e495b52..da99a06ce3a53b3bcf2e43b40444c00b7ce9d468 100644 (file)
@@ -1281,14 +1281,15 @@ static bool smb_time_audit_lock(vfs_handle_struct *handle, files_struct *fsp,
 
 static int smb_time_audit_kernel_flock(struct vfs_handle_struct *handle,
                                       struct files_struct *fsp,
-                                      uint32_t share_mode, uint32_t access_mask)
+                                      uint32_t share_access,
+                                      uint32_t access_mask)
 {
        int result;
        struct timespec ts1,ts2;
        double timediff;
 
        clock_gettime_mono(&ts1);
-       result = SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_mode,
+       result = SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_access,
                                           access_mask);
        clock_gettime_mono(&ts2);
        timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9;