From: Jeremy Allison Date: Fri, 16 Aug 2019 23:29:11 +0000 (-0700) Subject: s3: VFS: vfs_time_audit. Remove link_fn(). No longer used. X-Git-Tag: tevent-0.10.1~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb75a3d5e98e2ae3210f4fc68f0fabbc27f09c18;p=thirdparty%2Fsamba.git s3: VFS: vfs_time_audit. Remove link_fn(). No longer used. NB, this will now fail smb_vfs_assert_all_fns() until we remove the rename_fn() from the VFS definitions. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c index 5342438eb32..697a75f1d2f 100644 --- a/source3/modules/vfs_time_audit.c +++ b/source3/modules/vfs_time_audit.c @@ -1421,27 +1421,6 @@ static int smb_time_audit_readlink(vfs_handle_struct *handle, return result; } -static int smb_time_audit_link(vfs_handle_struct *handle, - const struct smb_filename *old_smb_fname, - const struct smb_filename *new_smb_fname) -{ - int result; - struct timespec ts1,ts2; - double timediff; - - clock_gettime_mono(&ts1); - result = SMB_VFS_NEXT_LINK(handle, old_smb_fname, new_smb_fname); - clock_gettime_mono(&ts2); - timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9; - - if (timediff > audit_timeout) { - smb_time_audit_log_fname("link", timediff, - new_smb_fname->base_name); - } - - return result; -} - static int smb_time_audit_linkat(vfs_handle_struct *handle, files_struct *srcfsp, const struct smb_filename *old_smb_fname, @@ -2870,7 +2849,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = { .getlock_fn = smb_time_audit_getlock, .symlink_fn = smb_time_audit_symlink, .readlink_fn = smb_time_audit_readlink, - .link_fn = smb_time_audit_link, .linkat_fn = smb_time_audit_linkat, .mknod_fn = smb_time_audit_mknod, .realpath_fn = smb_time_audit_realpath,