]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Use dptr_case_sensitive() in directory listing code.
authorJeremy Allison <jra@samba.org>
Mon, 8 Nov 2021 19:25:26 +0000 (11:25 -0800)
committerRalph Boehme <slow@samba.org>
Tue, 16 Nov 2021 20:21:37 +0000 (20:21 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/trans2.c

index d99ed45a3ae993c418f9dc46bbbd627771b9a64b..ca3e0c5171ebea84f804abb2b901547c24d21b28 100644 (file)
@@ -2483,7 +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;
+       state.case_sensitive = dptr_case_sensitive(dirptr);
 
        *got_exact_match = false;
 
@@ -2995,7 +2995,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
                 directory,lp_dont_descend(talloc_tos(), lp_sub, SNUM(conn))));
        if (in_list(directory,
                    lp_dont_descend(talloc_tos(), lp_sub, SNUM(conn)),
-                       conn->case_sensitive)) {
+                       dptr_case_sensitive(fsp->dptr))) {
                dont_descend = True;
        }
 
@@ -3370,7 +3370,8 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
 
        DEBUG(8,("dirpath=<%s> dontdescend=<%s>\n",
                 directory,lp_dont_descend(ctx, lp_sub, SNUM(conn))));
-       if (in_list(directory,lp_dont_descend(ctx, lp_sub, SNUM(conn)),conn->case_sensitive))
+       if (in_list(directory,lp_dont_descend(ctx, lp_sub, SNUM(conn)),
+                       dptr_case_sensitive(fsp->dptr)))
                dont_descend = True;
 
        p = pdata;