]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make dptr_ReadDirName() public
authorVolker Lendecke <vl@samba.org>
Fri, 9 Jun 2023 14:38:32 +0000 (16:38 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 13 Jun 2023 23:33:39 +0000 (23:33 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c
source3/smbd/proto.h

index 6fad63dc0d2b8a660a600cf14f33b0f603cef0a0..d266b33518cd243805d7f8dfc6f56fc13b7b080c 100644 (file)
@@ -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;
index b4a9e22d0c627217703d71d1614e53ad6dc1481e..e58e1d5040cf73369cc1447a5383d1ed04db43fc 100644 (file)
@@ -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);