From: Jeremy Allison Date: Fri, 30 Aug 2019 21:39:53 +0000 (-0700) Subject: s3: VFS: vfs_time_audit. Remove symlink_fn(). No longer used. X-Git-Tag: tevent-0.10.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea5a02e811060d674cb8603a30857161c00738df;p=thirdparty%2Fsamba.git s3: VFS: vfs_time_audit. Remove symlink_fn(). No longer used. NB, this will now fail smb_vfs_assert_all_fns() until we remove the symlink_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 e2236f16af0..4d1e4793e5e 100644 --- a/source3/modules/vfs_time_audit.c +++ b/source3/modules/vfs_time_audit.c @@ -1377,27 +1377,6 @@ static bool smb_time_audit_getlock(vfs_handle_struct *handle, return result; } -static int smb_time_audit_symlink(vfs_handle_struct *handle, - const char *link_contents, - const struct smb_filename *new_smb_fname) -{ - int result; - struct timespec ts1,ts2; - double timediff; - - clock_gettime_mono(&ts1); - result = SMB_VFS_NEXT_SYMLINK(handle, link_contents, 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("symlink", timediff, - new_smb_fname->base_name); - } - - return result; -} - static int smb_time_audit_symlinkat(vfs_handle_struct *handle, const char *link_contents, struct files_struct *dirfsp, @@ -2880,7 +2859,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = { .kernel_flock_fn = smb_time_audit_kernel_flock, .linux_setlease_fn = smb_time_audit_linux_setlease, .getlock_fn = smb_time_audit_getlock, - .symlink_fn = smb_time_audit_symlink, .symlinkat_fn = smb_time_audit_symlinkat, .readlinkat_fn = smb_time_audit_readlinkat, .linkat_fn = smb_time_audit_linkat,