const struct smb_filename *new_smb_fname,
int flags)
{
+ struct smb_filename *new_full_fname = NULL;
int result;
struct timespec ts1,ts2;
double timediff;
+ new_full_fname = full_path_from_dirfsp_atname(talloc_tos(),
+ dstfsp,
+ new_smb_fname);
+ if (new_full_fname == NULL) {
+ errno = ENOMEM;
+ return -1;
+ }
+
clock_gettime_mono(&ts1);
result = SMB_VFS_NEXT_LINKAT(handle,
srcfsp,
if (timediff > audit_timeout) {
smb_time_audit_log_fname("linkat", timediff,
- new_smb_fname->base_name);
+ new_full_fname->base_name);
}
+ TALLOC_FREE(new_full_fname);
return result;
}