From: Ralph Boehme Date: Thu, 12 Nov 2020 11:32:02 +0000 (+0100) Subject: s3/libadouble: use openat_pathref_fsp() in ad_collect_one_stream() X-Git-Tag: samba-4.14.0rc1~355 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4bb359a53c64bf2622def547dfc3520d1b5cd67;p=thirdparty%2Fsamba.git s3/libadouble: use openat_pathref_fsp() in ad_collect_one_stream() Ensures we have a pathref handle in the smb_fname we pass to SMB_VFS_CREATE_FILE(). Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/adouble.c b/source3/lib/adouble.c index d4090c224d5..99f948103c8 100644 --- a/source3/lib/adouble.c +++ b/source3/lib/adouble.c @@ -1642,6 +1642,12 @@ static bool ad_collect_one_stream(struct vfs_handle_struct *handle, goto out; } + status = openat_pathref_fsp(handle->conn->cwd_fsp, sname); + if (!NT_STATUS_IS_OK(status)) { + ok = false; + goto out; + } + status = SMB_VFS_CREATE_FILE( handle->conn, NULL, /* req */