diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-15 10:55:16 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:01 -0700 |
commit | fa3f2fd83b73b7d7e4fd35894a0fc13d8af1f2be (patch) | |
tree | a362a298f89bcfbb5b19b86f12ce39ef3819790f | |
parent | 419dd4f84475b7f2c290b2682124cea4bc46e8c5 (diff) | |
download | samba-fa3f2fd83b73b7d7e4fd35894a0fc13d8af1f2be.tar.gz samba-fa3f2fd83b73b7d7e4fd35894a0fc13d8af1f2be.tar.xz 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.c | 9 |
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; } } |