From 6c76c5ef93cd51d0c19faa78cecdc49a3ff5fd03 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Jan 2015 15:38:19 +0100 Subject: smbd: Make talloc_report of smb_filename more readable Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/lib/filename_util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3') diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c index 3ebf311204..316360b368 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; -- cgit