summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:36:11 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:59 -0700
commit952d348f872a24e31370ef3dbd176a17bf4d72b5 (patch)
treec3baa2854b9fc4e643a182fd87ea8c7a5069022a /source3/modules
parent83e6ff1511289bc07f9a7e3786efb245363a5646 (diff)
downloadsamba-952d348f872a24e31370ef3dbd176a17bf4d72b5.tar.gz
samba-952d348f872a24e31370ef3dbd176a17bf4d72b5.tar.bz2
samba-952d348f872a24e31370ef3dbd176a17bf4d72b5.zip
vfs: Convert collect_one_stream 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.c8
1 files changed, 3 insertions, 5 deletions
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;
}