summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 10:53:16 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commit9cf8d693de5142aa19507bb6dd73c1266e0df00a (patch)
tree0ab3bca5b7725bf2c58fd3d85387f93098be3643 /source3/smbd/trans2.c
parent381bd97f1307e827ff19721808ba303f292a8d4f (diff)
downloadsamba-9cf8d693de5142aa19507bb6dd73c1266e0df00a.tar.gz
samba-9cf8d693de5142aa19507bb6dd73c1266e0df00a.tar.bz2
samba-9cf8d693de5142aa19507bb6dd73c1266e0df00a.zip
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>
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index a1b69fcfb4..f78ed18bee 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -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;
}