From: Jeremy Allison Date: Fri, 10 Dec 2021 00:35:17 +0000 (-0800) Subject: s3: smbd: Handling SMB_FILE_RENAME_INFORMATION, the destination name is a single... X-Git-Tag: tdb-1.4.6~342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d58b9094f7bffec7b59f30229c8ee925fdd7581a;p=thirdparty%2Fsamba.git s3: smbd: Handling SMB_FILE_RENAME_INFORMATION, the destination name is a single component. No errors should be allowed from filename_convert(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 4ae59a33e18..55857dd9119 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -7480,25 +7480,8 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn, 0, &smb_fname_dst); - /* If an error we expect this to be - * NT_STATUS_OBJECT_PATH_NOT_FOUND */ - if (!NT_STATUS_IS_OK(status)) { - if(!NT_STATUS_EQUAL(NT_STATUS_OBJECT_PATH_NOT_FOUND, - status)) { - goto out; - } - /* Create an smb_fname to call rename_internals_fsp() */ - smb_fname_dst = synthetic_smb_fname(ctx, - base_name, - NULL, - NULL, - smb_fname_src->twrp, - smb_fname_src->flags); - if (smb_fname_dst == NULL) { - status = NT_STATUS_NO_MEMORY; - goto out; - } + goto out; } dst_original_lcomp = get_original_lcomp(smb_fname_dst, conn,