diff options
author | Jeremy Allison <jra@samba.org> | 2019-08-09 16:01:57 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-16 19:52:36 +0000 |
commit | 0464730ee2a1f17ce0944df4bfd9f6aa56678117 (patch) | |
tree | d49334a91a163e09b9102265761f4cfbafac3458 /source3/modules | |
parent | ba25d8fbb16a1c11880e7434803b6c92b23647ee (diff) | |
download | samba-0464730ee2a1f17ce0944df4bfd9f6aa56678117.tar.gz |
s3: VFS: vfs_extd_audit. Remove rename_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_extd_audit.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/modules/vfs_extd_audit.c b/source3/modules/vfs_extd_audit.c index d8ed3f6fcd5..70c889c4675 100644 --- a/source3/modules/vfs_extd_audit.c +++ b/source3/modules/vfs_extd_audit.c @@ -296,30 +296,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); - - if (lp_syslog() > 0) { - 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) : ""); - } - DEBUG(1, ("vfs_extd_audit: rename old: %s newname: %s %s %s\n", - smb_fname_str_dbg(smb_fname_src), - smb_fname_str_dbg(smb_fname_dst), - (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, @@ -421,7 +397,6 @@ static struct vfs_fn_pointers vfs_extd_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, |