summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 10:55:16 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:01 -0700
commitfa3f2fd83b73b7d7e4fd35894a0fc13d8af1f2be (patch)
treea362a298f89bcfbb5b19b86f12ce39ef3819790f
parent419dd4f84475b7f2c290b2682124cea4bc46e8c5 (diff)
downloadsamba-fa3f2fd83b73b7d7e4fd35894a0fc13d8af1f2be.tar.gz
samba-fa3f2fd83b73b7d7e4fd35894a0fc13d8af1f2be.tar.bz2
samba-fa3f2fd83b73b7d7e4fd35894a0fc13d8af1f2be.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>
-rw-r--r--source3/smbd/trans2.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index da0c1da290..14a2e0fa17 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -6436,11 +6436,10 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn,
goto out;
}
/* Create an smb_fname to call rename_internals_fsp() */
- status = create_synthetic_smb_fname(ctx,
- base_name, NULL,
- NULL,
- &smb_fname_dst);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname_dst = synthetic_smb_fname(
+ ctx, base_name, NULL, NULL);
+ if (smb_fname_dst == NULL) {
+ status = NT_STATUS_NO_MEMORY;
goto out;
}
}