]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Add case_sensitive, case_preserve, short_case_preserve to state struct.
authorJeremy Allison <jra@samba.org>
Fri, 15 Oct 2021 18:59:56 +0000 (11:59 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 16 Nov 2021 20:21:37 +0000 (20:21 +0000)
Not yet used.

This allows them to be independent of conn settings on
a handle-basis for posix.

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

index 639f898ff1f639fe978bb076dcc34d7e0c2943e5..be96047ea65d2a3b36a506140bebc7f707ea3bf7 100644 (file)
@@ -540,6 +540,9 @@ struct uc_state {
        bool posix_pathnames;
        bool allow_wcard_last_component;
        bool done;
+       bool case_sensitive;
+       bool case_preserve;
+       bool short_case_preserve;
 };
 
 static NTSTATUS unix_convert_step_search_fail(struct uc_state *state)
@@ -977,6 +980,9 @@ NTSTATUS unix_convert(TALLOC_CTX *mem_ctx,
                .ucf_flags = ucf_flags,
                .posix_pathnames = (ucf_flags & UCF_POSIX_PATHNAMES),
                .allow_wcard_last_component = (ucf_flags & UCF_ALWAYS_ALLOW_WCARD_LCOMP),
+               .case_sensitive = conn->case_sensitive,
+               .case_preserve = conn->case_preserve,
+               .short_case_preserve = conn->short_case_preserve,
        };
 
        *smb_fname_out = NULL;