From: Jeremy Allison Date: Thu, 30 Apr 2020 23:04:31 +0000 (-0700) Subject: s3: smbd: Reformat users of user_can_read_file(). X-Git-Tag: ldb-2.2.0~767 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f24e1abeee0e486070816d1cff3e8cfbb25f73e1;p=thirdparty%2Fsamba.git s3: smbd: Reformat users of user_can_read_file(). Make new parameter addition clearer. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index d430ff76957..fe001a18a6c 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -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;