summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 16:28:53 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:57 -0700
commit82bf92d08a3e1e208a7e944fa7ada0a56585ad4a (patch)
treea4944443c58dd1616b140b2edd4f7854f5ddce0b /source3
parente2e45bd9cd6fa9a48fe8be15da4406dfcc55057a (diff)
downloadsamba-82bf92d08a3e1e208a7e944fa7ada0a56585ad4a.tar.gz
samba-82bf92d08a3e1e208a7e944fa7ada0a56585ad4a.tar.bz2
samba-82bf92d08a3e1e208a7e944fa7ada0a56585ad4a.zip
smbd: Convert smb_set_file_size 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/smbd/trans2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 9e2eae8a41..c346093bc5 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -5812,9 +5812,9 @@ static NTSTATUS smb_set_file_size(connection_struct *conn,
return NT_STATUS_OK;
}
- status = copy_smb_filename(talloc_tos(), smb_fname, &smb_fname_tmp);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
+ smb_fname_tmp = cp_smb_filename(talloc_tos(), smb_fname);
+ if (smb_fname_tmp == NULL) {
+ return NT_STATUS_NO_MEMORY;
}
smb_fname_tmp->st = *psbuf;