summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 15:40:10 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:55 -0700
commit6fffea81acd4a991aed57bdc126338b9ae8e4863 (patch)
tree06a5ea3956bae34e1286343b997efc6e287b8eeb /source3/modules
parent79e005072e2c466af95013992eb89e19993e2d39 (diff)
downloadsamba-6fffea81acd4a991aed57bdc126338b9ae8e4863.tar.gz
samba-6fffea81acd4a991aed57bdc126338b9ae8e4863.tar.bz2
samba-6fffea81acd4a991aed57bdc126338b9ae8e4863.zip
vfs: Convert recycle_do_touch to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
-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 84a1cd89f9..ed9a28091f 100644
--- a/source3/modules/vfs_recycle.c
+++ b/source3/modules/vfs_recycle.c
@@ -394,13 +394,12 @@ static void recycle_do_touch(vfs_handle_struct *handle,
{
struct smb_filename *smb_fname_tmp = NULL;
struct smb_file_time ft;
- NTSTATUS status;
int ret, err;
ZERO_STRUCT(ft);
- 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;
}