From 35ee8a7b6c7e68a6a48e2ecafae78d9f6f901040 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 15 Oct 2021 11:59:56 -0700 Subject: [PATCH] s3: smbd: Add case_sensitive, case_preserve, short_case_preserve to state struct. Not yet used. This allows them to be independent of conn settings on a handle-basis for posix. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/filename.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 639f898ff1f..be96047ea65 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -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;