Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
char *buf,
size_t bufsiz)
{
+ struct smb_filename *full_fname = NULL;
int result;
struct timespec ts1,ts2;
double timediff;
+ full_fname = full_path_from_dirfsp_atname(talloc_tos(),
+ dirfsp,
+ smb_fname);
+ if (full_fname == NULL) {
+ errno = ENOMEM;
+ return -1;
+ }
+
clock_gettime_mono(&ts1);
result = SMB_VFS_NEXT_READLINKAT(handle,
dirfsp,
if (timediff > audit_timeout) {
smb_time_audit_log_fname("readlinkat", timediff,
- smb_fname->base_name);
+ full_fname->base_name);
}
+ TALLOC_FREE(full_fname);
return result;
}