From: Ralph Boehme Date: Thu, 30 Mar 2023 14:06:44 +0000 (+0200) Subject: smbd: use smb1_strip_dfs_path() in reply_mv() X-Git-Tag: talloc-2.4.1~1204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c4e4c22eacd89bdd61e4fd3d690769bde044151;p=thirdparty%2Fsamba.git smbd: use smb1_strip_dfs_path() in reply_mv() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb1_reply.c b/source3/smbd/smb1_reply.c index c2eda556b48..7efc4fe6d1a 100644 --- a/source3/smbd/smb1_reply.c +++ b/source3/smbd/smb1_reply.c @@ -6251,6 +6251,11 @@ void reply_mv(struct smb_request *req) if (dst_ucf_flags & UCF_GMT_PATHNAME) { extract_snapshot_token(newname, &dst_twrp); } + status = smb1_strip_dfs_path(ctx, &dst_ucf_flags, &newname); + if (!NT_STATUS_IS_OK(status)) { + reply_nterror(req, status); + goto out; + } status = filename_convert_dirfsp(ctx, conn, newname,