From 9a42fe2d6de50117ea4b0d57819e32d389e787fb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 11 Apr 2013 16:30:38 +0200 Subject: [PATCH] smbd: Convert smb_set_file_unix_basic to cp_smb_filename Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/trans2.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index c346093bc55..ce3f5a5380f 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) { -- 2.11.4.GIT