1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +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; break;
} }
smb_fname_dst->original_lcomp = talloc_strdup(smb_fname_dst, dst_original_lcomp = talloc_strdup(smb_fname_dst, dname);
dname); if (dst_original_lcomp == NULL) {
if (!smb_fname_dst->original_lcomp) {
status = NT_STATUS_NO_MEMORY; status = NT_STATUS_NO_MEMORY;
goto out; goto out;
} }
@ -8238,7 +8237,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
status = rename_internals_fsp(conn, status = rename_internals_fsp(conn,
fsp, fsp,
smb_fname_dst, smb_fname_dst,
smb_fname_dst->original_lcomp, dst_original_lcomp,
attrs, attrs,
replace_if_exists); replace_if_exists);