]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Add dptr_case_sensitive(). Not yet used.
authorJeremy Allison <jra@samba.org>
Mon, 8 Nov 2021 19:21:03 +0000 (11:21 -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/dir.c
source3/smbd/proto.h

index b2275b9d949a616aed00a1e5f1f37258d3b0a31e..3bf2f79f3fad0ad9e2e776af3b47609779c290bc 100644 (file)
@@ -397,6 +397,11 @@ void dptr_set_priv(struct dptr_struct *dptr)
        dptr->priv = true;
 }
 
+bool dptr_case_sensitive(struct dptr_struct *dptr)
+{
+       return dptr->dir_hnd->case_sensitive;
+}
+
 /****************************************************************************
  Return the next visible file name, skipping veto'd and invisible files.
 ****************************************************************************/
index 981248f0cf8cb0f2f1131d1b4c21f9bcc5874231..ea86515a9253a0bd155526ed92c9abca7fe1a6fc 100644 (file)
@@ -208,6 +208,7 @@ bool dptr_has_wild(struct dptr_struct *dptr);
 int dptr_dnum(struct dptr_struct *dptr);
 bool dptr_get_priv(struct dptr_struct *dptr);
 void dptr_set_priv(struct dptr_struct *dptr);
+bool dptr_case_sensitive(struct dptr_struct *dptr);
 bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst);
 bool dptr_fill(struct smbd_server_connection *sconn,
               char *buf1,unsigned int key);