From: Stefan Metzmacher Date: Wed, 5 Apr 2023 14:59:28 +0000 (+0200) Subject: vfs_fruit: avoid using 'conn->tcon->compat', we can just use 'conn'! X-Git-Tag: talloc-2.4.1~974 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c78466bdb136998fa9d28b46ffbf18cd9b61a7;p=thirdparty%2Fsamba.git vfs_fruit: avoid using 'conn->tcon->compat', we can just use 'conn'! Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Wed Apr 12 13:51:50 UTC 2023 on atb-devel-224 --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 4058d4834e7..637e2a1a6ed 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -849,7 +849,7 @@ static NTSTATUS check_aapl(vfs_handle_struct *handle, if (req_bitmap & SMB2_CRTCTX_AAPL_SERVER_CAPS) { if ((client_caps & SMB2_CRTCTX_AAPL_SUPPORTS_READ_DIR_ATTR) && - (handle->conn->tcon->compat->fs_capabilities & FILE_NAMED_STREAMS)) { + (handle->conn->fs_capabilities & FILE_NAMED_STREAMS)) { server_caps |= SMB2_CRTCTX_AAPL_SUPPORTS_READ_DIR_ATTR; config->readdir_attr_enabled = true; } @@ -875,7 +875,7 @@ static NTSTATUS check_aapl(vfs_handle_struct *handle, } if (req_bitmap & SMB2_CRTCTX_AAPL_VOLUME_CAPS) { - int val = lp_case_sensitive(SNUM(handle->conn->tcon->compat)); + int val = lp_case_sensitive(SNUM(handle->conn)); uint64_t caps = 0; switch (val) {