mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
vfs: Convert cap_ntimes to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
acf70b9e06
commit
fecf225068
@ -305,7 +305,6 @@ static int cap_ntimes(vfs_handle_struct *handle,
|
||||
{
|
||||
struct smb_filename *smb_fname_tmp = NULL;
|
||||
char *cappath = NULL;
|
||||
NTSTATUS status;
|
||||
int ret;
|
||||
|
||||
cappath = capencode(talloc_tos(), smb_fname->base_name);
|
||||
@ -316,10 +315,9 @@ static int cap_ntimes(vfs_handle_struct *handle,
|
||||
}
|
||||
|
||||
/* Setup temporary smb_filename structs. */
|
||||
status = copy_smb_filename(talloc_tos(), smb_fname,
|
||||
&smb_fname_tmp);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
errno = map_errno_from_nt_status(status);
|
||||
smb_fname_tmp = cp_smb_filename(talloc_tos(), smb_fname);
|
||||
if (smb_fname_tmp == NULL) {
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user