From: Volker Lendecke Date: Fri, 9 Jan 2015 14:38:19 +0000 (+0100) Subject: smbd: Make talloc_report of smb_filename more readable X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=6c76c5ef93cd51d0c19faa78cecdc49a3ff5fd03;p=amitay%2Fsamba.git smbd: Make talloc_report of smb_filename more readable Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c index 3ebf3112049..316360b368d 100644 --- a/source3/lib/filename_util.c +++ b/source3/lib/filename_util.c @@ -199,14 +199,20 @@ struct smb_filename *cp_smb_filename(TALLOC_CTX *mem_ctx, if (in->base_name != NULL) { out->base_name = talloc_memdup( out, in->base_name, base_len); + talloc_set_name_const(out->base_name, + out->base_name); } if (in->stream_name != NULL) { out->stream_name = talloc_memdup( out, in->stream_name, stream_len); + talloc_set_name_const(out->stream_name, + out->stream_name); } if (in->original_lcomp != NULL) { out->original_lcomp = talloc_memdup( out, in->original_lcomp, lcomp_len); + talloc_set_name_const(out->original_lcomp, + out->original_lcomp); } out->st = in->st; return out;