mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3/libadouble: use openat_pathref_fsp() in ad_convert_xattr()
Ensures we have a pathref handle in the smb_fname we pass to SMB_VFS_CREATE_FILE(). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
9a5a1fe148
commit
67a7354814
@ -1106,6 +1106,14 @@ static bool ad_convert_xattr(vfs_handle_struct *handle,
|
||||
|
||||
DBG_DEBUG("stream_name: %s\n", smb_fname_str_dbg(stream_name));
|
||||
|
||||
status = openat_pathref_fsp(handle->conn->cwd_fsp, stream_name);
|
||||
if (!NT_STATUS_IS_OK(status) &&
|
||||
!NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND))
|
||||
{
|
||||
ok = false;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
status = SMB_VFS_CREATE_FILE(
|
||||
handle->conn, /* conn */
|
||||
NULL, /* req */
|
||||
|
Loading…
Reference in New Issue
Block a user