]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use file_id_str_buf() in file_find_dif()
authorVolker Lendecke <vl@samba.org>
Sat, 9 Nov 2019 17:32:07 +0000 (18:32 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Nov 2019 20:56:34 +0000 (20:56 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/files.c

index e0ec601c56fadf6aef24fda3fbc2d4bec002726d..077610cad75437e5cd55e702e85cfd753eea4e8c 100644 (file)
@@ -344,11 +344,12 @@ files_struct *file_find_dif(struct smbd_server_connection *sconn,
                        if ((fsp->fh->fd == -1) &&
                            (fsp->oplock_type != NO_OPLOCK &&
                             fsp->oplock_type != LEASE_OPLOCK)) {
+                               struct file_id_buf idbuf;
                                DEBUG(0,("file_find_dif: file %s file_id = "
                                         "%s, gen = %u oplock_type = %u is a "
                                         "stat open with oplock type !\n",
                                         fsp_str_dbg(fsp),
-                                        file_id_string_tos(&fsp->file_id),
+                                        file_id_str_buf(fsp->file_id, &idbuf),
                                         (unsigned int)fsp->fh->gen_id,
                                         (unsigned int)fsp->oplock_type ));
                                smb_panic("file_find_dif");