mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
libadouble: call vfs_stat() in ad_convert_xattr()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
9eef705ecf
commit
c77140fd65
@ -1106,6 +1106,12 @@ static bool ad_convert_xattr(vfs_handle_struct *handle,
|
||||
|
||||
DBG_DEBUG("stream_name: %s\n", smb_fname_str_dbg(stream_name));
|
||||
|
||||
rc = vfs_stat(handle->conn, stream_name);
|
||||
if (rc == -1 && errno != ENOENT) {
|
||||
ok = false;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user