mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
s3: libsmb: Call cli_dfs_target_check() from cli_smb1_rename_send().
Strips off any DFS prefix from the target if passed in. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14169 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
parent
cf3e572442
commit
dd0317f6ec
@ -1234,6 +1234,18 @@ static struct tevent_req *cli_smb1_rename_send(TALLOC_CTX *mem_ctx,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Strip a MSDFS path from fname_dst if we were given one.
|
||||
*/
|
||||
status = cli_dfs_target_check(state,
|
||||
cli,
|
||||
fname_src,
|
||||
fname_dst,
|
||||
&fname_dst);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!push_ucs2_talloc(talloc_tos(), &converted_str, fname_dst,
|
||||
&converted_size_bytes)) {
|
||||
status = NT_STATUS_INVALID_PARAMETER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user