summaryrefslogtreecommitdiffstats
path: root/source3/modules/vfs_recycle.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 15:37:38 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:55 -0700
commit36bfe54c3b9c2ac54c6ff3b19d8eee57f03627fe (patch)
tree8690059e6061b6a459bf4d3b7f3d36d3407ae65b /source3/modules/vfs_recycle.c
parent9b875f62448dda0ff2283d7a4729542ccf6335ab (diff)
downloadsamba-36bfe54c3b9c2ac54c6ff3b19d8eee57f03627fe.tar.gz
samba-36bfe54c3b9c2ac54c6ff3b19d8eee57f03627fe.tar.xz
samba-36bfe54c3b9c2ac54c6ff3b19d8eee57f03627fe.zip
vfs: Convert recycle_file_exists to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules/vfs_recycle.c')
-rw-r--r--source3/modules/vfs_recycle.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c
index 3e6825041e..ddc76945df 100644
--- a/source3/modules/vfs_recycle.c
+++ b/source3/modules/vfs_recycle.c
@@ -201,11 +201,10 @@ static bool recycle_file_exist(vfs_handle_struct *handle,
const struct smb_filename *smb_fname)
{
struct smb_filename *smb_fname_tmp = NULL;
- NTSTATUS status;
bool ret = false;
- status = copy_smb_filename(talloc_tos(), smb_fname, &smb_fname_tmp);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname_tmp = cp_smb_filename(talloc_tos(), smb_fname);
+ if (smb_fname_tmp == NULL) {
return false;
}