mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
smbd: Make talloc_report of smb_filename more readable
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
15511f7c51
commit
6c76c5ef93
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user