From: Ralph Boehme Date: Mon, 25 Jan 2021 15:10:12 +0000 (+0100) Subject: vfs_fruit: use synthetic_pathref() in readdir_attr_meta_finderi_stream() X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=1032bf08dd32ddd2c8f7554f50374f22f4a36f99;p=bbaumbach%2Fsamba-autobuild%2F.git vfs_fruit: use synthetic_pathref() in readdir_attr_meta_finderi_stream() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index f5b5f91a012..9250baee1b6 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -902,26 +902,17 @@ static bool readdir_attr_meta_finderi_stream( files_struct *fsp = NULL; ssize_t nread; NTSTATUS status; - int ret; bool ok; uint8_t buf[AFP_INFO_SIZE]; - stream_name = synthetic_smb_fname(talloc_tos(), - smb_fname->base_name, - AFPINFO_STREAM_NAME, - NULL, - smb_fname->twrp, - smb_fname->flags); - if (stream_name == NULL) { - return false; - } - - ret = SMB_VFS_STAT(handle->conn, stream_name); - if (ret != 0) { - return false; - } - - status = openat_pathref_fsp(handle->conn->cwd_fsp, stream_name); + status = synthetic_pathref(talloc_tos(), + handle->conn->cwd_fsp, + smb_fname->base_name, + AFPINFO_STREAM_NAME, + NULL, + smb_fname->twrp, + smb_fname->flags, + &stream_name); if (!NT_STATUS_IS_OK(status)) { return false; }