summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 10:54:22 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commit419dd4f84475b7f2c290b2682124cea4bc46e8c5 (patch)
treef6e465c73788fc94839639726f5671553555cf58 /source3/smbd
parent9cf8d693de5142aa19507bb6dd73c1266e0df00a (diff)
downloadsamba-419dd4f84475b7f2c290b2682124cea4bc46e8c5.tar.gz
samba-419dd4f84475b7f2c290b2682124cea4bc46e8c5.tar.bz2
samba-419dd4f84475b7f2c290b2682124cea4bc46e8c5.zip
smbd: Convert smb_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')
-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 f78ed18bee..da0c1da290 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -6364,10 +6364,11 @@ static NTSTATUS smb_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;
}