]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use file_id_str_buf() in defer_open()
authorVolker Lendecke <vl@samba.org>
Mon, 9 Sep 2019 14:30:57 +0000 (16:30 +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/open.c

index 7797df03e4b87ce41bad114911fe1402cd7edd47..94e8753e32ac671d9e9e8c035c1b72572791a81a 100644 (file)
@@ -2417,6 +2417,7 @@ static void defer_open(struct share_mode_lock *lck,
        struct defer_open_state *watch_state;
        struct tevent_req *watch_req;
        struct timeval_buf tvbuf1, tvbuf2;
+       struct file_id_buf fbuf;
        bool ok;
 
        abs_timeout = timeval_sum(&req->request_time, &timeout);
@@ -2427,7 +2428,7 @@ static void defer_open(struct share_mode_lock *lck,
                  timeval_str_buf(&abs_timeout, false, true, &tvbuf2),
                  req->mid,
                  delayed_for_oplocks ? "yes" : "no",
-                 file_id_string_tos(&id));
+                 file_id_str_buf(id, &fbuf));
 
        open_rec = talloc_zero(NULL, struct deferred_open_record);
        if (open_rec == NULL) {