From: Jeremy Allison Date: Fri, 16 Aug 2019 23:21:42 +0000 (-0700) Subject: s3: VFS: vfs_full_audit. Remove link_fn(). No longer used. X-Git-Tag: tevent-0.10.1~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2440107f5e987cf6ffe2806d6516547b593fd8;p=thirdparty%2Fsamba.git s3: VFS: vfs_full_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_full_audit.c b/source3/modules/vfs_full_audit.c index a48840b6e98..836d4de8b4e 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1756,20 +1756,6 @@ static int smb_full_audit_readlink(vfs_handle_struct *handle, return result; } -static int smb_full_audit_link(vfs_handle_struct *handle, - const struct smb_filename *old_smb_fname, - const struct smb_filename *new_smb_fname) -{ - int result; - - result = SMB_VFS_NEXT_LINK(handle, old_smb_fname, new_smb_fname); - - do_log(SMB_VFS_OP_LINK, (result >= 0), handle, - "%s|%s", old_smb_fname->base_name, new_smb_fname->base_name); - - return result; -} - static int smb_full_audit_linkat(vfs_handle_struct *handle, files_struct *srcfsp, const struct smb_filename *old_smb_fname, @@ -2900,7 +2886,6 @@ static struct vfs_fn_pointers vfs_full_audit_fns = { .getlock_fn = smb_full_audit_getlock, .symlink_fn = smb_full_audit_symlink, .readlink_fn = smb_full_audit_readlink, - .link_fn = smb_full_audit_link, .linkat_fn = smb_full_audit_linkat, .mknod_fn = smb_full_audit_mknod, .realpath_fn = smb_full_audit_realpath,