summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:37:10 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:59 -0700
commita61307489c93e925ed99f0e2409984a794d74fce (patch)
tree52e478b9ae3122cc352e775da8a1f996a2f1da2d /source3/modules
parent952d348f872a24e31370ef3dbd176a17bf4d72b5 (diff)
downloadsamba-a61307489c93e925ed99f0e2409984a794d74fce.tar.gz
samba-a61307489c93e925ed99f0e2409984a794d74fce.tar.bz2
samba-a61307489c93e925ed99f0e2409984a794d74fce.zip
vfs: Convert streams_depot_streaminfo to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_streams_depot.c9
1 files changed, 4 insertions, 5 deletions
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)) {