]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_full_audit. Remove link_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 16 Aug 2019 23:21:42 +0000 (16:21 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 20 Aug 2019 21:09:29 +0000 (21:09 +0000)
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>
source3/modules/vfs_full_audit.c

index a48840b6e988b9f6700bfdc26f0438347bbacd18..836d4de8b4e4695c03df83d5fbcda72b714aa2c1 100644 (file)
@@ -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,