summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-08-16 16:29:11 -0700
committerJeremy Allison <jra@samba.org>2019-08-20 21:09:29 +0000
commitfb75a3d5e98e2ae3210f4fc68f0fabbc27f09c18 (patch)
tree200eb6cb68b747382ac893e68eac940296bb3cc4
parent1b2440107f5e987cf6ffe2806d6516547b593fd8 (diff)
downloadsamba-fb75a3d5e98e2ae3210f4fc68f0fabbc27f09c18.tar.gz
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 <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
-rw-r--r--source3/modules/vfs_time_audit.c22
1 files changed, 0 insertions, 22 deletions
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,