From 952d348f872a24e31370ef3dbd176a17bf4d72b5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:36:11 +0200 Subject: vfs: Convert collect_one_stream to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_streams_depot.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 8bf8135502..da11ba4323 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -800,7 +800,6 @@ static bool collect_one_stream(const char *dirname, (struct streaminfo_state *)private_data; struct smb_filename *smb_fname = NULL; char *sname = NULL; - NTSTATUS status; bool ret; sname = talloc_asprintf(talloc_tos(), "%s/%s", dirname, dirent); @@ -810,10 +809,9 @@ static bool collect_one_stream(const char *dirname, goto out; } - status = create_synthetic_smb_fname(talloc_tos(), sname, NULL, - NULL, &smb_fname); - if (!NT_STATUS_IS_OK(status)) { - state->status = status; + smb_fname = synthetic_smb_fname(talloc_tos(), sname, NULL, NULL); + if (smb_fname == NULL) { + state->status = NT_STATUS_NO_MEMORY; ret = false; goto out; } -- cgit