From: Volker Lendecke Date: Fri, 6 Sep 2019 05:29:10 +0000 (+0200) Subject: smbd: Use file_id_str_buf() in share_mode_str() X-Git-Tag: talloc-2.3.1~923 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9263473b07abe106f79edda8f880183881b4cff;p=thirdparty%2Fsamba.git smbd: Use file_id_str_buf() in share_mode_str() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 3ed63cdec41..97ef4d220d0 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -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); }