]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use file_id_str_buf() in share_mode_str()
authorVolker Lendecke <vl@samba.org>
Fri, 6 Sep 2019 05:29:10 +0000 (07:29 +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/locking/locking.c

index 3ed63cdec41bb52a8c440cbfca420593c6b86494..97ef4d220d0fc6e903b00333bc80b564f8f95d8a 100644 (file)
@@ -442,6 +442,7 @@ char *share_mode_str(TALLOC_CTX *ctx, int num,
                     const struct share_mode_entry *e)
 {
        struct server_id_buf tmp;
+       struct file_id_buf ftmp;
 
        return talloc_asprintf(ctx, "share_mode_entry[%d]: "
                 "pid = %s, share_access = 0x%x, private_options = 0x%x, "
@@ -453,7 +454,7 @@ char *share_mode_str(TALLOC_CTX *ctx, int num,
                 e->access_mask, (unsigned long long)e->op_mid,
                 e->op_type, (unsigned long long)e->share_file_id,
                 (unsigned int)e->uid, (unsigned int)e->flags,
-                file_id_string_tos(id),
+                file_id_str_buf(*id, &ftmp),
                 (unsigned int)e->name_hash);
 }