From c5dca6d5b7e3482aa52117e66fc8e31c0a8896e4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Jun 2023 16:38:32 +0200 Subject: [PATCH] smbd: Make dptr_ReadDirName() public Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/dir.c | 8 ++++---- source3/smbd/proto.h | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 6fad63dc0d2..d266b33518c 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -412,10 +412,10 @@ bool dptr_case_sensitive(struct dptr_struct *dptr) Return the next visible file name, skipping veto'd and invisible files. ****************************************************************************/ -static char *dptr_ReadDirName(TALLOC_CTX *ctx, - struct dptr_struct *dptr, - long *poffset, - SMB_STRUCT_STAT *pst) +char *dptr_ReadDirName(TALLOC_CTX *ctx, + struct dptr_struct *dptr, + long *poffset, + SMB_STRUCT_STAT *pst) { struct smb_Dir *dir_hnd = dptr->dir_hnd; struct files_struct *dir_fsp = dir_hnd->fsp; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index b4a9e22d0c6..e58e1d5040c 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -199,6 +199,10 @@ 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); +char *dptr_ReadDirName(TALLOC_CTX *ctx, + struct dptr_struct *dptr, + long *poffset, + SMB_STRUCT_STAT *pst); bool dptr_SearchDir(struct dptr_struct *dptr, const char *name); struct smb_Dir; struct files_struct *dir_hnd_fetch_fsp(struct smb_Dir *dir_hnd);