From: Volker Lendecke Date: Mon, 9 Sep 2019 14:34:10 +0000 (+0200) Subject: smbd: Use file_id_str_buf() in close_remove_share_mode() X-Git-Tag: talloc-2.3.1~918 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2448060072e9f82fc6b0d48109d70e4e491650ca;p=thirdparty%2Fsamba.git smbd: Use file_id_str_buf() in close_remove_share_mode() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 12d7f8c9a95..06d3f81f5a6 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -421,14 +421,15 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp, id = vfs_file_id_from_sbuf(conn, &fsp->fsp_name->st); if (!file_id_equal(&fsp->file_id, &id)) { + struct file_id_buf ftmp1, ftmp2; DEBUG(5,("close_remove_share_mode: file %s. Delete on close " "was set and dev and/or inode does not match\n", fsp_str_dbg(fsp))); DEBUG(5,("close_remove_share_mode: file %s. stored file_id %s, " "stat file_id %s\n", fsp_str_dbg(fsp), - file_id_string_tos(&fsp->file_id), - file_id_string_tos(&id))); + file_id_str_buf(fsp->file_id, &ftmp1), + file_id_str_buf(id, &ftmp2))); /* * Don't save the errno here, we ignore this error */