s3: smbd: Use state->short_case_preserve instead of state->conn->short_case_preserve.
authorJeremy Allison <jra@samba.org>
Fri, 15 Oct 2021 19:08:25 +0000 (12:08 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 16 Nov 2021 20:21:37 +0000 (20:21 +0000)
No logic changes.

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

index 333eb24c50d9ee0ec851331858e6a9cf64448c24..d0a2f03fc45effe945f766c4557d5250a21d1813 100644 (file)
@@ -629,7 +629,7 @@ static NTSTATUS unix_convert_step_search_fail(struct uc_state *state)
        if (!state->case_preserve ||
            (mangle_is_8_3(state->name, false,
                           state->conn->params) &&
-            !state->conn->short_case_preserve)) {
+            !state->short_case_preserve)) {
                if (!strnorm(state->name,
                             lp_default_case(SNUM(state->conn)))) {
                        DBG_DEBUG("strnorm %s failed\n",