summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 16:30:38 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:57 -0700
commit9a42fe2d6de50117ea4b0d57819e32d389e787fb (patch)
treeb8768e264c11c553692cf40cf6d5335e20c0be07
parent82bf92d08a3e1e208a7e944fa7ada0a56585ad4a (diff)
downloadsamba-9a42fe2d6de50117ea4b0d57819e32d389e787fb.tar.gz
samba-9a42fe2d6de50117ea4b0d57819e32d389e787fb.tar.bz2
samba-9a42fe2d6de50117ea4b0d57819e32d389e787fb.zip
smbd: Convert smb_set_file_unix_basic to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/trans2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index c346093bc5..ce3f5a5380 100644
--- 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) {