vfs: Use file_id_str_buf() in smb_full_audit_file_id_create()
authorVolker Lendecke <vl@samba.org>
Mon, 4 Nov 2019 06:39:48 +0000 (07:39 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 6 Nov 2019 20:36:35 +0000 (20:36 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_full_audit.c

index a13c4da419bad4a3b0004e9b7c50ba85197e9c4c..efb34ca72b32842f0aa20c5fdacfaf8da33d7e2f 100644 (file)
@@ -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;
 }