From: Volker Lendecke Date: Fri, 24 Jan 2025 10:21:32 +0000 (+0100) Subject: vfs: Slightly simplify streams_depot_fstreaminfo() X-Git-Tag: tevent-0.17.0~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1748dcc0add1e7455bb32490dcfb313dc82d491;p=thirdparty%2Fsamba.git vfs: Slightly simplify streams_depot_fstreaminfo() Use metadata_fsp() Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 4d4b1fe2992..64f6ad7208d 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -1272,11 +1272,8 @@ static NTSTATUS streams_depot_fstreaminfo(vfs_handle_struct *handle, *pnum_streams = state.num_streams; *pstreams = state.streams; - status = SMB_VFS_NEXT_FSTREAMINFO(handle, - fsp->base_fsp ? fsp->base_fsp : fsp, - mem_ctx, - pnum_streams, - pstreams); + status = SMB_VFS_NEXT_FSTREAMINFO( + handle, metadata_fsp(fsp), mem_ctx, pnum_streams, pstreams); out: TALLOC_FREE(smb_fname_base);