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

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

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

index 856a3625a75bbb86779ae24b257a93799dec14f0..f67e82613d55af1d7922b3e1f87634f56524b4f5 100644 (file)
@@ -59,6 +59,7 @@ struct smb_Dir {
        struct name_cache_entry *name_cache;
        unsigned int name_cache_index;
        unsigned int file_number;
+       bool case_sensitive;
        files_struct *fsp; /* Back pointer to containing fsp, only
                              set from OpenDir_fsp(). */
 };
@@ -1549,6 +1550,7 @@ static struct smb_Dir *OpenDir_fsp(TALLOC_CTX *mem_ctx, connection_struct *conn,
                goto fail;
        }
        dir_hnd->fsp = fsp;
+       dir_hnd->case_sensitive = conn->case_sensitive;
 
        talloc_set_destructor(dir_hnd, smb_Dir_destructor);