1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

smbd: use smb1_strip_dfs_path() in reply_mv()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2023-03-30 16:06:04 +02:00
parent c44491676e
commit c3a87ffb63

View File

@ -6225,6 +6225,11 @@ void reply_mv(struct smb_request *req)
if (src_ucf_flags & UCF_GMT_PATHNAME) { if (src_ucf_flags & UCF_GMT_PATHNAME) {
extract_snapshot_token(name, &src_twrp); extract_snapshot_token(name, &src_twrp);
} }
status = smb1_strip_dfs_path(ctx, &src_ucf_flags, &name);
if (!NT_STATUS_IS_OK(status)) {
reply_nterror(req, status);
goto out;
}
status = filename_convert_dirfsp(ctx, status = filename_convert_dirfsp(ctx,
conn, conn,
name, name,