summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-01-12 11:59:02 +0100
committerJeremy Allison <jra@samba.org>2021-01-14 17:55:33 +0000
commitc77140fd6513b0115e70d257cee156e2c76964c2 (patch)
treeacd6b362adb4fe2809c98ca228539d8332e8f516 /source3
parent9eef705ecf0eba6b77ab2b0e79234de2411fc2b0 (diff)
downloadsamba-c77140fd6513b0115e70d257cee156e2c76964c2.tar.gz
libadouble: call vfs_stat() in ad_convert_xattr()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/adouble.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/adouble.c b/source3/lib/adouble.c
index 0155c2ccc8d..060caa97ede 100644
--- a/source3/lib/adouble.c
+++ b/source3/lib/adouble.c
@@ -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))