smbd: Use file_id_str_buf() in scavenger_schedule_disconnected()
authorVolker Lendecke <vl@samba.org>
Sat, 9 Nov 2019 17:27:30 +0000 (18:27 +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/scavenger.c

index a9fda7f06415c9db72553f87cdbee5190d85672e..bed384b865e21f5ffd1367702d4d3642444ec552 100644 (file)
@@ -410,6 +410,7 @@ void scavenger_schedule_disconnected(struct files_struct *fsp)
        struct scavenger_message msg;
        DATA_BLOB msg_blob;
        struct server_id_buf tmp;
+       struct file_id_buf idbuf;
 
        if (fsp->op == NULL) {
                return;
@@ -428,7 +429,7 @@ void scavenger_schedule_disconnected(struct files_struct *fsp)
        DEBUG(10, ("smbd: %s mark file %s as disconnected at %s with timeout "
                   "at %s in %fs\n",
                   server_id_str_buf(self, &tmp),
-                  file_id_string_tos(&fsp->file_id),
+                  file_id_str_buf(fsp->file_id, &idbuf),
                   timeval_string(talloc_tos(), &disconnect_time, true),
                   timeval_string(talloc_tos(), &until, true),
                   fsp->op->global->durable_timeout_msec/1000.0));