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:
82bf92d
)
smbd: Convert smb_set_file_unix_basic to cp_smb_filename
author
Volker Lendecke
<vl@samba.org>
Thu, 11 Apr 2013 14:30:38 +0000
(16:30 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 17 Apr 2013 21:49:57 +0000
(14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index c346093bc550fe996df778bcd49ed8a544682bd3..ce3f5a5380f243c3736ea90e2f0c69bc41b1925b 100644
(file)
--- a/
source3/smbd/trans2.c
+++ b/
source3/smbd/trans2.c
@@
-7053,10
+7053,9
@@
static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
return status;
}
- 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;
}
if (SMB_VFS_STAT(conn, smb_fname_tmp) != 0) {