]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: avoid using 'conn->tcon->compat', we can just use 'conn'!
authorStefan Metzmacher <metze@samba.org>
Wed, 5 Apr 2023 14:59:28 +0000 (16:59 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Apr 2023 13:51:50 +0000 (13:51 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Apr 12 13:51:50 UTC 2023 on atb-devel-224

source3/modules/vfs_fruit.c

index 4058d4834e72dfe661e6bd20af286e458adf2386..637e2a1a6ed5414a36fb406c242055448f71b442 100644 (file)
@@ -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) {