From 1729d786928957c37062f19582c52871c12b90b6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:31:37 +0200 Subject: [PATCH] vfs: Convert streams_depot_open to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_streams_depot.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 335640fd671..ab8bde5ba1f 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -567,13 +567,11 @@ static int streams_depot_open(vfs_handle_struct *handle, } /* Ensure the base file still exists. */ - 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) { ret = -1; - errno = map_errno_from_nt_status(status); + errno = ENOMEM; goto done; } -- 2.11.4.GIT