From: Jeremy Allison Date: Mon, 8 Nov 2021 19:21:03 +0000 (-0800) Subject: s3: smbd: Add dptr_case_sensitive(). Not yet used. X-Git-Tag: ldb-2.5.0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e163f22e81d082e2ca161ee032eb14083154b70f;p=thirdparty%2Fsamba.git s3: smbd: Add dptr_case_sensitive(). Not yet used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index b2275b9d949..3bf2f79f3fa 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -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. ****************************************************************************/ diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 981248f0cf8..ea86515a925 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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);