diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 15:22:19 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:41 +0000 |
commit | 4fcd20cd6bfc646f4ee9319aae0bf6306f1c1a7c (patch) | |
tree | b06404078d65d9a293ece6b9e300cd4b70c5c9be /source3/modules | |
parent | 14e24881c4e2839e896c3b6e8b94ecc7a990947f (diff) | |
download | samba-4fcd20cd6bfc646f4ee9319aae0bf6306f1c1a7c.tar.gz |
s3: VFS: vfs_time_audit: Remove rmdir_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_time_audit.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c index 7fa6161945a..871823f5c15 100644 --- a/source3/modules/vfs_time_audit.c +++ b/source3/modules/vfs_time_audit.c @@ -531,27 +531,6 @@ static int smb_time_audit_mkdirat(vfs_handle_struct *handle, return result; } -static int smb_time_audit_rmdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - int result; - struct timespec ts1,ts2; - double timediff; - - clock_gettime_mono(&ts1); - result = SMB_VFS_NEXT_RMDIR(handle, smb_fname); - clock_gettime_mono(&ts2); - timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9; - - if (timediff > audit_timeout) { - smb_time_audit_log_smb_fname("rmdir", - timediff, - smb_fname); - } - - return result; -} - static int smb_time_audit_closedir(vfs_handle_struct *handle, DIR *dirp) { @@ -2857,7 +2836,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = { .telldir_fn = smb_time_audit_telldir, .rewind_dir_fn = smb_time_audit_rewinddir, .mkdirat_fn = smb_time_audit_mkdirat, - .rmdir_fn = smb_time_audit_rmdir, .closedir_fn = smb_time_audit_closedir, .open_fn = smb_time_audit_open, .create_file_fn = smb_time_audit_create_file, |