From: Ralph Boehme Date: Thu, 12 Nov 2020 11:37:52 +0000 (+0100) Subject: s3/libadouble: use openat_pathref_fsp() in readdir_attr_meta_finderi_stream() X-Git-Tag: samba-4.14.0rc1~353 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8a49d0ec9e4fc31e1b2a8f93a3d36b2a3caed50;p=thirdparty%2Fsamba.git s3/libadouble: use openat_pathref_fsp() in readdir_attr_meta_finderi_stream() Ensures we have a pathref handle in the smb_fname we pass to SMB_VFS_CREATE_FILE(). As the create_disposition is FILE_OPEN we just return the error if openat_pathref_fsp() fails Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 6576ea1dbaa..352606b0f4a 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -895,6 +895,11 @@ static bool readdir_attr_meta_finderi_stream( return false; } + status = openat_pathref_fsp(handle->conn->cwd_fsp, stream_name); + if (!NT_STATUS_IS_OK(status)) { + return false; + } + status = SMB_VFS_CREATE_FILE( handle->conn, /* conn */ NULL, /* req */