mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
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 <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
6db08012e9
commit
d58b9094f7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user