summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 16:25:10 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:56 -0700
commit1f39074b8338855033ffc1484e56ede6a86f6c1a (patch)
tree4a60f7fc50c9d5500c28e1e215775f3bc7c0a217 /source3
parenta062fb813e7e85cf9d493126e14dd62abb8f87e1 (diff)
downloadsamba-1f39074b8338855033ffc1484e56ede6a86f6c1a.tar.gz
samba-1f39074b8338855033ffc1484e56ede6a86f6c1a.tar.bz2
samba-1f39074b8338855033ffc1484e56ede6a86f6c1a.zip
smbd: Convert copy_file 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/reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 92f6560fbb..d65161dd58 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -7036,9 +7036,9 @@ NTSTATUS copy_file(TALLOC_CTX *ctx,
NTSTATUS status;
- status = copy_smb_filename(ctx, smb_fname_dst, &smb_fname_dst_tmp);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
+ smb_fname_dst_tmp = cp_smb_filename(ctx, smb_fname_dst);
+ if (smb_fname_dst_tmp == NULL) {
+ return NT_STATUS_NO_MEMORY;
}
/*