From 1e51128424749eb68634376b01f87362d67b1186 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 16 Sep 2019 17:59:25 -0700 Subject: [PATCH] s3: VFS: vfs_audit: Remove unlink_fn. No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_audit.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c index c75339351b6..8c6b23e6878 100644 --- a/source3/modules/vfs_audit.c +++ b/source3/modules/vfs_audit.c @@ -283,21 +283,6 @@ static int audit_renameat(vfs_handle_struct *handle, return result; } -static int audit_unlink(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - int result; - - result = SMB_VFS_NEXT_UNLINK(handle, smb_fname); - - syslog(audit_syslog_priority(handle), "unlink %s %s%s\n", - smb_fname->base_name, - (result < 0) ? "failed: " : "", - (result < 0) ? strerror(errno) : ""); - - return result; -} - static int audit_unlinkat(vfs_handle_struct *handle, struct files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -357,7 +342,6 @@ static struct vfs_fn_pointers vfs_audit_fns = { .open_fn = audit_open, .close_fn = audit_close, .renameat_fn = audit_renameat, - .unlink_fn = audit_unlink, .unlinkat_fn = audit_unlinkat, .chmod_fn = audit_chmod, .fchmod_fn = audit_fchmod, -- 2.47.3