From 001371f45e5a069aa9cfaef9c35dc47b371935a8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 4 Nov 2019 07:39:48 +0100 Subject: [PATCH] vfs: Use file_id_str_buf() in smb_full_audit_file_id_create() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_full_audit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index a13c4da419b..efb34ca72b3 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1877,6 +1877,7 @@ static struct file_id smb_full_audit_file_id_create(struct vfs_handle_struct *ha { struct file_id id_zero; struct file_id result; + struct file_id_buf idbuf; ZERO_STRUCT(id_zero); @@ -1884,7 +1885,9 @@ static struct file_id smb_full_audit_file_id_create(struct vfs_handle_struct *ha do_log(SMB_VFS_OP_FILE_ID_CREATE, !file_id_equal(&id_zero, &result), - handle, "%s", file_id_string_tos(&result)); + handle, + "%s", + file_id_str_buf(result, &idbuf)); return result; } -- 2.47.3