Will make it easier to see parameter change in a later commit.
No logic changes.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
continue;
}
- if (!is_visible_file(conn, smb_dname, dname, &st,
- false)) {
+ if (!is_visible_file(conn,
+ smb_dname,
+ dname,
+ &st,
+ false)) {
TALLOC_FREE(talloced);
continue;
}
TALLOC_FREE(talloced);
continue;
}
- if (!is_visible_file(conn, smb_dname, dname,
- &st, false)) {
+ if (!is_visible_file(conn,
+ smb_dname,
+ dname,
+ &st,
+ false)) {
TALLOC_FREE(talloced);
continue;
}
TALLOC_FREE(talloced);
continue;
}
- if (!is_visible_file(conn, smb_dname, dname,
- &st, false)) {
+ if (!is_visible_file(conn,
+ smb_dname,
+ dname,
+ &st,
+ false)) {
TALLOC_FREE(talloced);
continue;
}
********************************************************************/
bool is_visible_file(connection_struct *conn,
- struct smb_filename *dir_path,
- const char *name,
- SMB_STRUCT_STAT *pst,
- bool use_veto)
+ struct smb_filename *dir_path,
+ const char *name,
+ SMB_STRUCT_STAT *pst,
+ bool use_veto)
{
bool hide_unreadable = lp_hide_unreadable(SNUM(conn));
bool hide_unwriteable = lp_hide_unwriteable_files(SNUM(conn));
}
}
- if (!is_visible_file(conn, fsp->fsp_name, dname, &st, True)) {
+ if (!is_visible_file(conn,
+ fsp->fsp_name,
+ dname,
+ &st,
+ True)) {
TALLOC_FREE(talloced);
continue;
}
bool check_descend,
bool ask_sharemode);
bool is_visible_file(connection_struct *conn,
- struct smb_filename *dir_path,
- const char *name,
- SMB_STRUCT_STAT *pst,
- bool use_veto);
+ struct smb_filename *dir_path,
+ const char *name,
+ SMB_STRUCT_STAT *pst,
+ bool use_veto);
struct smb_Dir *OpenDir(TALLOC_CTX *mem_ctx,
connection_struct *conn,
const struct smb_filename *smb_fname,
&smb_fname->st, &talloced))) {
TALLOC_CTX *frame = talloc_stackframe();
- if (!is_visible_file(conn, smb_fname_dir, dname,
- &smb_fname->st, true)) {
+ if (!is_visible_file(conn,
+ smb_fname_dir,
+ dname,
+ &smb_fname->st,
+ true)) {
TALLOC_FREE(frame);
TALLOC_FREE(talloced);
continue;
}
}
- if (!is_visible_file(conn, smb_fname_src_dir, dname,
- &smb_fname_src->st, false)) {
+ if (!is_visible_file(conn,
+ smb_fname_src_dir,
+ dname,
+ &smb_fname_src->st,
+ false)) {
TALLOC_FREE(talloced);
continue;
}
continue;
}
- if (!is_visible_file(conn, smb_fname_src_dir, dname,
- &smb_fname_src->st, false)) {
+ if (!is_visible_file(conn,
+ smb_fname_src_dir,
+ dname,
+ &smb_fname_src->st,
+ false)) {
TALLOC_FREE(talloced);
continue;
}