diff options
author | Jeremy Allison <jra@samba.org> | 2019-08-09 15:41:59 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-16 19:52:34 +0000 |
commit | ef0d50c27225f3a6cb570ed364ce17ffbae3506a (patch) | |
tree | 44c1a3adc2cd16c766976152773354082a633bb4 | |
parent | d439c2bab4a3b1b8c4f3cee0cfe4110f8ea3f88c (diff) | |
download | samba-ef0d50c27225f3a6cb570ed364ce17ffbae3506a.tar.gz |
s3: VFS: vfs_audit. Remove rename_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r-- | source3/modules/vfs_audit.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c index 81bb43ec27a..55f5dd52d01 100644 --- a/source3/modules/vfs_audit.c +++ b/source3/modules/vfs_audit.c @@ -256,23 +256,6 @@ static int audit_close(vfs_handle_struct *handle, files_struct *fsp) return result; } -static int audit_rename(vfs_handle_struct *handle, - const struct smb_filename *smb_fname_src, - const struct smb_filename *smb_fname_dst) -{ - int result; - - result = SMB_VFS_NEXT_RENAME(handle, smb_fname_src, smb_fname_dst); - - syslog(audit_syslog_priority(handle), "rename %s -> %s %s%s\n", - smb_fname_src->base_name, - smb_fname_dst->base_name, - (result < 0) ? "failed: " : "", - (result < 0) ? strerror(errno) : ""); - - return result; -} - static int audit_renameat(vfs_handle_struct *handle, files_struct *srcfsp, const struct smb_filename *smb_fname_src, @@ -350,7 +333,6 @@ static struct vfs_fn_pointers vfs_audit_fns = { .rmdir_fn = audit_rmdir, .open_fn = audit_open, .close_fn = audit_close, - .rename_fn = audit_rename, .renameat_fn = audit_renameat, .unlink_fn = audit_unlink, .chmod_fn = audit_chmod, |