1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3: smbd: Inside rename_internals() wildcard case, re-purpose dst_original_lcomp.

Pass to rename_internals_fsp() instead of using smb_fname_dst->original_lcomp.

Removes one more use of the struct member original_lcomp.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2020-03-26 15:32:36 -07:00 committed by Ralph Boehme
parent 6c6e5d52ea
commit d540819395

View File

@ -8228,9 +8228,8 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
break;
}
smb_fname_dst->original_lcomp = talloc_strdup(smb_fname_dst,
dname);
if (!smb_fname_dst->original_lcomp) {
dst_original_lcomp = talloc_strdup(smb_fname_dst, dname);
if (dst_original_lcomp == NULL) {
status = NT_STATUS_NO_MEMORY;
goto out;
}
@ -8238,7 +8237,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
status = rename_internals_fsp(conn,
fsp,
smb_fname_dst,
smb_fname_dst->original_lcomp,
dst_original_lcomp,
attrs,
replace_if_exists);