]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use file_id_str_buf() in close_remove_share_mode()
authorVolker Lendecke <vl@samba.org>
Mon, 9 Sep 2019 14:34:10 +0000 (16:34 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Sep 2019 23:14:31 +0000 (23:14 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/close.c

index 12d7f8c9a950851fa4b32be7ba69955d2aef97e8..06d3f81f5a6769fc143c17a226d381743af2f601 100644 (file)
@@ -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
                 */