diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 16:10:22 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:55 -0700 |
commit | db4bbc0c4f8e57396cf81432876df59d238363d5 (patch) | |
tree | f801d1a3ca0ce8be0e3fd83f21c9cadf2ebe78ea /source3 | |
parent | 6fffea81acd4a991aed57bdc126338b9ae8e4863 (diff) | |
download | samba-db4bbc0c4f8e57396cf81432876df59d238363d5.tar.gz samba-db4bbc0c4f8e57396cf81432876df59d238363d5.tar.bz2 samba-db4bbc0c4f8e57396cf81432876df59d238363d5.zip |
vfs: Convert catia_rename to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_catia.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index f7c0e7b918..652c3caf1f 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -393,16 +393,15 @@ static int catia_rename(vfs_handle_struct *handle, } /* Setup temporary smb_filename structs. */ - status = copy_smb_filename(ctx, smb_fname_src, &smb_fname_src_tmp); - - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + smb_fname_src_tmp = cp_smb_filename(ctx, smb_fname_src); + if (smb_fname_src_tmp == NULL) { + errno = ENOMEM; goto out; } - status = copy_smb_filename(ctx, smb_fname_dst, &smb_fname_dst_tmp); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + smb_fname_dst_tmp = cp_smb_filename(ctx, smb_fname_dst); + if (smb_fname_dst_tmp == NULL) { + errno = ENOMEM; goto out; } |