diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 15:38:41 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:55 -0700 |
commit | 79e005072e2c466af95013992eb89e19993e2d39 (patch) | |
tree | 804400e7c554c48402943fb9470769411ff69e9e | |
parent | 36bfe54c3b9c2ac54c6ff3b19d8eee57f03627fe (diff) | |
download | samba-79e005072e2c466af95013992eb89e19993e2d39.tar.gz samba-79e005072e2c466af95013992eb89e19993e2d39.tar.xz samba-79e005072e2c466af95013992eb89e19993e2d39.zip |
vfs: Convert recycle_get_file_size 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_recycle.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c index ddc76945df..84a1cd89f9 100644 --- a/source3/modules/vfs_recycle.c +++ b/source3/modules/vfs_recycle.c @@ -228,11 +228,10 @@ static off_t recycle_get_file_size(vfs_handle_struct *handle, const struct smb_filename *smb_fname) { struct smb_filename *smb_fname_tmp = NULL; - NTSTATUS status; off_t size; - 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) { size = (off_t)0; goto out; } |