From: Jeremy Allison Date: Fri, 5 Nov 2021 23:55:06 +0000 (-0700) Subject: s3: smbd: Use state->case_sensitive instead of state->conn->case_sensitive. X-Git-Tag: ldb-2.5.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b130decc2bb17b058d57bbcd46babb5b2b939a6;p=thirdparty%2Fsamba.git s3: smbd: Use state->case_sensitive instead of state->conn->case_sensitive. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 6a7c4a09a14..d99ed45a3ae 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1643,12 +1643,12 @@ static bool smbd_dirptr_lanman2_match_fn(TALLOC_CTX *ctx, } got_match = exact_match(state->has_wild, - state->conn->case_sensitive, + state->case_sensitive, fname, mask); state->got_exact_match = got_match; if (!got_match) { got_match = mask_match(fname, mask, - state->conn->case_sensitive); + state->case_sensitive); } if(!got_match && state->check_mangled_names && @@ -1667,12 +1667,12 @@ static bool smbd_dirptr_lanman2_match_fn(TALLOC_CTX *ctx, } got_match = exact_match(state->has_wild, - state->conn->case_sensitive, + state->case_sensitive, mangled_name, mask); state->got_exact_match = got_match; if (!got_match) { got_match = mask_match(mangled_name, mask, - state->conn->case_sensitive); + state->case_sensitive); } }