1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

vfs: Convert streams_depot_streaminfo to synthetic_smb_fname

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2013-04-12 11:37:10 +02:00 committed by Jeremy Allison
parent 952d348f87
commit a61307489c

View File

@ -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)) {