mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
smbd: Convert open_np_file to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
fa3f2fd83b
commit
fe79862131
@ -51,11 +51,10 @@ NTSTATUS open_np_file(struct smb_request *smb_req, const char *name,
|
||||
fsp->can_lock = false;
|
||||
fsp->access_mask = FILE_READ_DATA | FILE_WRITE_DATA;
|
||||
|
||||
status = create_synthetic_smb_fname(talloc_tos(), name, NULL, NULL,
|
||||
&smb_fname);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
smb_fname = synthetic_smb_fname(talloc_tos(), name, NULL, NULL);
|
||||
if (smb_fname == NULL) {
|
||||
file_free(smb_req, fsp);
|
||||
return status;
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
status = fsp_set_smb_fname(fsp, smb_fname);
|
||||
TALLOC_FREE(smb_fname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user