From e8a49d0ec9e4fc31e1b2a8f93a3d36b2a3caed50 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 12 Nov 2020 12:37:52 +0100 Subject: [PATCH] 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 --- source3/modules/vfs_fruit.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- 2.47.3