From fe798621314aaba110fb59567ab8a10eac83266e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:00:14 +0200 Subject: smbd: Convert open_np_file to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/pipes.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c index 9cca3f03c1..05d98d4782 100644 --- a/source3/smbd/pipes.c +++ b/source3/smbd/pipes.c @@ -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); -- cgit