From: Jeremy Allison Date: Thu, 3 Jun 2021 19:40:54 +0000 (-0700) Subject: s3: smbd: is_visible_file() is now static to dir.c. X-Git-Tag: tevent-0.11.0~570 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25debb608ed6f356f8f1b1d21a215f52e78ae6aa;p=thirdparty%2Fsamba.git s3: smbd: is_visible_file() is now static to dir.c. Once fully replaced in there it can be removed. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index d66f423f772..70b61c8521f 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -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, diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 9b521dc3a6e..788bb48ea7c 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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,