From a61307489c93e925ed99f0e2409984a794d74fce Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:37:10 +0200 Subject: vfs: Convert streams_depot_streaminfo to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_streams_depot.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index da11ba4323..3ada92eeb5 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -847,15 +847,14 @@ static NTSTATUS streams_depot_streaminfo(vfs_handle_struct *handle, unsigned int *pnum_streams, struct stream_struct **pstreams) { - struct smb_filename *smb_fname_base = NULL; + struct smb_filename *smb_fname_base; int ret; NTSTATUS status; struct streaminfo_state state; - status = create_synthetic_smb_fname(talloc_tos(), fname, NULL, NULL, - &smb_fname_base); - if (!NT_STATUS_IS_OK(status)) { - return status; + smb_fname_base = synthetic_smb_fname(talloc_tos(), fname, NULL, NULL); + if (smb_fname_base == NULL) { + return NT_STATUS_NO_MEMORY; } if ((fsp != NULL) && (fsp->fh->fd != -1)) { -- cgit