s3: smbd: Reformat calls to is_visible_file() to one arg per line.
authorJeremy Allison <jra@samba.org>
Wed, 29 Apr 2020 21:37:02 +0000 (14:37 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 30 Apr 2020 07:33:40 +0000 (07:33 +0000)
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>
source3/smbd/close.c
source3/smbd/dir.c
source3/smbd/proto.h
source3/smbd/reply.c

index 8ad8a6b51885dd1610c5aa651e6b456dc17e4313..42aedff6a785367906a8ee59e634306eab7005c4 100644 (file)
@@ -832,8 +832,11 @@ bool recursive_rmdir(TALLOC_CTX *ctx,
                        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;
                }
@@ -969,8 +972,11 @@ static NTSTATUS rmdir_internals(TALLOC_CTX *ctx, files_struct *fsp)
                                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;
                        }
@@ -1004,8 +1010,11 @@ static NTSTATUS rmdir_internals(TALLOC_CTX *ctx, files_struct *fsp)
                                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;
                        }
index 7f5af0e37d382c4b719b33c7946eb251e26acc1b..ecb53d7ae8ab5c8bdc8272192d6ca7723537cfd0 100644 (file)
@@ -1209,10 +1209,10 @@ static bool file_is_special(connection_struct *conn,
 ********************************************************************/
 
 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));
@@ -1760,7 +1760,11 @@ NTSTATUS can_delete_directory_fsp(files_struct *fsp)
                        }
                }
 
-               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;
                }
index 04f168dddfd9c9725a7b022fd6e354277607092c..e39fe4e365e16f0f10b949c27d6517c98bf0ec7b 100644 (file)
@@ -225,10 +225,10 @@ bool get_dir_entry(TALLOC_CTX *ctx,
                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,
index 2fa1d9f5dd1d19479f166b23d35fb88e39ad2e69..d87b3968d05e8db0a871485af49000205e6c2bef 100644 (file)
@@ -3469,8 +3469,11 @@ NTSTATUS unlink_internals(connection_struct *conn, struct smb_request *req,
                                            &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;
@@ -8143,8 +8146,11 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
                        }
                }
 
-               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;
                }
@@ -8885,8 +8891,11 @@ void reply_copy(struct smb_request *req)
                                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;
                        }