s3: smbd: Add 'bool case_sensitive' to struct smbd_dirptr_lanman2_state.
authorJeremy Allison <jra@samba.org>
Fri, 5 Nov 2021 23:53:26 +0000 (16:53 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 16 Nov 2021 20:21:37 +0000 (20:21 +0000)
Initialize from conn->case_sensitive. Not yet used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/trans2.c

index b0fb02b7c782b0abf47aca80310340ad835d8eae..6a7c4a09a142d02c9b072040cb83d18c8c735b70 100644 (file)
@@ -1589,6 +1589,7 @@ struct smbd_dirptr_lanman2_state {
        bool check_mangled_names;
        bool has_wild;
        bool got_exact_match;
+       bool case_sensitive;
 };
 
 static bool smbd_dirptr_lanman2_match_fn(TALLOC_CTX *ctx,
@@ -2482,6 +2483,7 @@ NTSTATUS smbd_dirptr_lanman2_entry(TALLOC_CTX *ctx,
        }
        state.has_wild = dptr_has_wild(dirptr);
        state.got_exact_match = false;
+       state.case_sensitive = conn->case_sensitive;
 
        *got_exact_match = false;