diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 16:11:26 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:56 -0700 |
commit | 7d274641726d1572243968b708a102bb9a15a15c (patch) | |
tree | fd61b0c4eecfb8b0ddb282564f5818ad8306a70a | |
parent | db4bbc0c4f8e57396cf81432876df59d238363d5 (diff) | |
download | samba-7d274641726d1572243968b708a102bb9a15a15c.tar.gz samba-7d274641726d1572243968b708a102bb9a15a15c.tar.bz2 samba-7d274641726d1572243968b708a102bb9a15a15c.zip |
vfs: Convert catia_unlink to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/modules/vfs_catia.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index 652c3caf1f..00e93cf494 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -491,9 +491,9 @@ static int catia_unlink(vfs_handle_struct *handle, } /* Setup temporary smb_filename structs. */ - status = copy_smb_filename(talloc_tos(), smb_fname, &smb_fname_tmp); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + smb_fname_tmp = cp_smb_filename(talloc_tos(), smb_fname); + if (smb_fname_tmp == NULL) { + errno = ENOMEM; return -1; } |