From cc0b8351a445243bdefd4b98a31548b2c51e43b8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:55:53 +0200 Subject: smbd: Convert create_file_unixpath to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index fedd2b9b24..0d9698a560 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3741,11 +3741,11 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, } /* Create an smb_filename with stream_name == NULL. */ - status = create_synthetic_smb_fname(talloc_tos(), - smb_fname->base_name, - NULL, NULL, - &smb_fname_base); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_base = synthetic_smb_fname(talloc_tos(), + smb_fname->base_name, + NULL, NULL); + if (smb_fname_base == NULL) { + status = NT_STATUS_NO_MEMORY; goto fail; } -- cgit