]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: is_visible_file() is now static to dir.c.
authorJeremy Allison <jra@samba.org>
Thu, 3 Jun 2021 19:40:54 +0000 (12:40 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Once fully replaced in there it can be removed.

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

index d66f423f772c4a84aa344829321cf54111757094..70b61c8521f845bcdf52093dcc44a3e005da407b 100644 (file)
@@ -80,6 +80,12 @@ struct dptr_struct {
        struct memcache *dptr_cache;
 };
 
+static bool is_visible_file(connection_struct *conn,
+               struct smb_Dir *dir_hnd,
+               const char *name,
+               SMB_STRUCT_STAT *pst,
+               bool use_veto);
+
 static struct smb_Dir *OpenDir_fsp(TALLOC_CTX *mem_ctx, connection_struct *conn,
                        files_struct *fsp,
                        const char *mask,
@@ -1445,7 +1451,7 @@ static bool file_is_special(connection_struct *conn,
  NOTE: A successful return is no guarantee of the file's existence.
 ********************************************************************/
 
-bool is_visible_file(connection_struct *conn,
+static bool is_visible_file(connection_struct *conn,
                struct smb_Dir *dir_hnd,
                const char *name,
                SMB_STRUCT_STAT *pst,
index 9b521dc3a6e291f976a3f375f1d80216afc9948d..788bb48ea7ceeb5cf626addcccf7ea61bf9a9084 100644 (file)
@@ -228,11 +228,6 @@ bool get_dir_entry(TALLOC_CTX *ctx,
                bool check_descend,
                bool ask_sharemode);
 struct smb_Dir;
-bool is_visible_file(connection_struct *conn,
-               struct smb_Dir *dir_hnd,
-               const char *name,
-               SMB_STRUCT_STAT *pst,
-               bool use_veto);
 bool is_visible_fsp(files_struct *fsp, bool use_veto);
 struct smb_Dir *OpenDir(TALLOC_CTX *mem_ctx,
                        connection_struct *conn,