s3: smbd: Reformat users of user_can_read_file().
authorJeremy Allison <jra@samba.org>
Thu, 30 Apr 2020 23:04:31 +0000 (16:04 -0700)
committerRalph Boehme <slow@samba.org>
Mon, 4 May 2020 13:55:33 +0000 (13:55 +0000)
Make new parameter addition clearer.

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

index d430ff769573a6076b4555f1a59322dda8378704..fe001a18a6c5dd8955e995b239231790f32efb83 100644 (file)
@@ -1069,7 +1069,7 @@ bool get_dir_entry(TALLOC_CTX *ctx,
 ********************************************************************/
 
 static bool user_can_read_file(connection_struct *conn,
-                              struct smb_filename *smb_fname)
+                               struct smb_filename *smb_fname)
 {
        NTSTATUS status;
        uint32_t rejected_share_access = 0;
@@ -1275,7 +1275,9 @@ bool is_visible_file(connection_struct *conn,
 
                /* Honour _hide unreadable_ option */
                if (hide_unreadable &&
-                   !user_can_read_file(conn, smb_fname_base)) {
+                   !user_can_read_file(conn,
+                               smb_fname_base))
+               {
                        DEBUG(10,("is_visible_file: file %s is unreadable.\n",
                                 entry ));
                        ret = false;