git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a062fb8
)
smbd: Convert copy_file to cp_smb_filename
author
Volker Lendecke
<vl@samba.org>
Thu, 11 Apr 2013 14:25:10 +0000
(16:25 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 17 Apr 2013 21:49:56 +0000
(14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index 92f6560fbb99dd0df26c5c488ffcb4e2408289ad..d65161dd5886b0d0a7cfe169d46b7f58e6e5b774 100644
(file)
--- a/
source3/smbd/reply.c
+++ b/
source3/smbd/reply.c
@@
-7036,9
+7036,9
@@
NTSTATUS copy_file(TALLOC_CTX *ctx,
NTSTATUS status;
- s
tatus = copy_smb_filename(ctx, smb_fname_dst, &smb_fname_dst_tmp
);
- if (
!NT_STATUS_IS_OK(status)
) {
- return
status
;
+ s
mb_fname_dst_tmp = cp_smb_filename(ctx, smb_fname_dst
);
+ if (
smb_fname_dst_tmp == NULL
) {
+ return
NT_STATUS_NO_MEMORY
;
}
/*