1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

smbd: Convert smb2_file_rename_information to synthetic_smb_fname

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2013-04-15 10:53:16 +02:00 committed by Jeremy Allison
parent 381bd97f13
commit 9cf8d693de

View File

@ -6194,10 +6194,11 @@ static NTSTATUS smb2_file_rename_information(connection_struct *conn,
}
/* Create an smb_fname to call rename_internals_fsp() with. */
status = create_synthetic_smb_fname(talloc_tos(),
fsp->base_fsp->fsp_name->base_name, newname, NULL,
&smb_fname_dst);
if (!NT_STATUS_IS_OK(status)) {
smb_fname_dst = synthetic_smb_fname(
talloc_tos(), fsp->base_fsp->fsp_name->base_name,
newname, NULL);
if (smb_fname_dst == NULL) {
status = NT_STATUS_NO_MEMORY;
goto out;
}